Class: MetaBuild::CommandLine
- Inherits:
-
Object
- Object
- MetaBuild::CommandLine
- Defined in:
- lib/meta_build/command_line.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CommandLine
constructor
A new instance of CommandLine.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ CommandLine
Returns a new instance of CommandLine.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/meta_build/command_line.rb', line 8 def initialize( = {}) = MetaBuild::Helper::AppHelper. if puts "[ERROR] #{}" exit 1 end @options = @options[:name] = MetaBuild::Helper::AppHelper.set_target_name(@options[:name], @options[:compressed_file]) @options[:replace_files] ||= false @options[:create_dir] ||= false end |
Class Method Details
.execute(options = {}) ⇒ Object
4 5 6 |
# File 'lib/meta_build/command_line.rb', line 4 def self.execute( = {}) new().run end |