Class: Souyuz::CommandsGenerator
- Inherits:
-
Object
- Object
- Souyuz::CommandsGenerator
- Includes:
- Commander::Methods
- Defined in:
- lib/souyuz/commands_generator.rb
Constant Summary collapse
- UI =
FastlaneCore::UI
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.start ⇒ Object
13 14 15 |
# File 'lib/souyuz/commands_generator.rb', line 13 def self.start new.run end |
Instance Method Details
#convert_options(options) ⇒ Object
17 18 19 20 21 |
# File 'lib/souyuz/commands_generator.rb', line 17 def () o = .__hash__.dup o.delete(:verbose) o end |
#run ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/souyuz/commands_generator.rb', line 23 def run program :version, Souyuz::VERSION program :description, Souyuz::DESCRIPTION program :help, "Author", "Felix Rudat <[email protected]>" program :help_formatter, :compact global_option("--verbose") { $verbose = true } command :build do |c| c.syntax = "souyuz" c.description = "Just builds your app" c.action do |_args, | config = FastlaneCore::Configuration.create(Souyuz::Options., ()) Souyuz::Manager.new.work(config) end end default_command :build run! end |