Class: Yadecli::Command::ConnectCommand
- Inherits:
-
Mutations::Command
- Object
- Mutations::Command
- Yadecli::Command::ConnectCommand
- Defined in:
- lib/yadecli/command/connect_command.rb
Instance Method Summary collapse
-
#execute ⇒ Object
The execute method is called only if the inputs validate.
Instance Method Details
#execute ⇒ Object
The execute method is called only if the inputs validate. It does your business action.
20 21 22 23 24 25 26 |
# File 'lib/yadecli/command/connect_command.rb', line 20 def execute Yade::Common::Config::AppConfig[:yade_url] = self.yade_url Yade::Common::Config::AppConfig.write! "Successfully connected to Yade at url #{self.yade_url}" end |