Class: Yadecli::Command::ConnectCommand

Inherits:
Mutations::Command
  • Object
show all
Defined in:
lib/yadecli/command/connect_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject

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