class MetaModel::Command
Constants
- METAMODEL_COMMAND_ALIAS
- METAMODEL_OPTION_ALIAS
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/metamodel/command.rb, line 44 def initialize(argv) config.skip_build = argv.flag?("skip-build", false) # config.verbose = self.verbose? config.verbose = true super end
options()
click to toggle source
Calls superclass method
# File lib/metamodel/command.rb, line 38 def self.options [ ['--skip-build', 'Skip building MetaModel framework process'] ].concat(super) end
run(argv)
click to toggle source
Calls superclass method
# File lib/metamodel/command.rb, line 30 def self.run(argv) if METAMODEL_COMMAND_ALIAS[argv.first] super([METAMODEL_COMMAND_ALIAS[argv.first]] + argv[1..-1]) else super(argv) end end
Public Instance Methods
installer_for_config()
click to toggle source
# File lib/metamodel/command.rb, line 51 def installer_for_config Installer.new(config.metafile) end
Private Instance Methods
verify_meta_exists!()
click to toggle source
Checks that meta folder exists
@return [void]
# File lib/metamodel/command.rb, line 62 def verify_meta_exists! unless config.metefile_exist? raise Informative, "No `meta' folder found in the project directory." end end