Class: MetaModel::Command::Clean

Inherits:
MetaModel::Command show all
Defined in:
lib/metamodel/command/clean.rb

Constant Summary

Constants inherited from MetaModel::Command

METAMODEL_COMMAND_ALIAS, METAMODEL_OPTION_ALIAS

Instance Method Summary collapse

Methods inherited from MetaModel::Command

#installer_for_config, options, run

Methods included from MetaModel::Config::Mixin

#config

Constructor Details

#initialize(argv) ⇒ Clean

Returns a new instance of Clean.



13
14
15
# File 'lib/metamodel/command/clean.rb', line 13

def initialize(argv)
  super
end

Instance Method Details

#runObject



17
18
19
20
21
22
23
# File 'lib/metamodel/command/clean.rb', line 17

def run
  UI.section "Removing MetaModel project" do
    FileUtils.rm_rf 'MetaModel'
    FileUtils.rm_rf 'MetaModel.framework'
    UI.message "Already clean up the whole MetaModel project from current folder"
  end
end