Class: Contracto::Command::Start
- Inherits:
-
Object
- Object
- Contracto::Command::Start
- Defined in:
- lib/contracto/command/start.rb
Defined Under Namespace
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ Start
constructor
A new instance of Start.
Constructor Details
#initialize(args) ⇒ Start
Returns a new instance of Start.
5 6 7 8 9 10 11 12 |
# File 'lib/contracto/command/start.rb', line 5 def initialize(args) puts 'starting contracto server...' if args.first @strategy = Contracto::Command::Start::Remote.new(args.first) else @strategy = Contracto::Command::Start::Local.new end end |
Instance Method Details
#execute ⇒ Object
14 15 16 |
# File 'lib/contracto/command/start.rb', line 14 def execute @strategy.execute end |