Class: IntercityCLI::Main
- Inherits:
-
Thor
- Object
- Thor
- IntercityCLI::Main
- Defined in:
- lib/intercity/cli.rb
Instance Method Summary collapse
Instance Method Details
#active ⇒ Object
38 39 40 41 |
# File 'lib/intercity/cli.rb', line 38 def active configuration = IntercityCLI::Configuration.new() puts configuration.active_server end |
#switch(server) ⇒ Object
31 32 33 34 35 |
# File 'lib/intercity/cli.rb', line 31 def switch(server) configuration = IntercityCLI::Configuration.new() configuration.active_server = server puts "Switched active server to #{server}" end |