lib/gooddata/cli/commands/process_cmd.rb in gooddata-0.6.0.pre11 vs lib/gooddata/cli/commands/process_cmd.rb in gooddata-0.6.0
- old
+ new
@@ -1,9 +1,11 @@
+# encoding: UTF-8
+
require 'pp'
-require File.join(File.dirname(__FILE__), "../shared")
-require File.join(File.dirname(__FILE__), "../../commands/process")
+require_relative '../shared'
+require_relative '../../commands/process'
GoodData::CLI.module_eval do
desc 'Work with deployed processes'
arg_name 'Describe arguments to list here'
@@ -32,19 +34,19 @@
GoodData.connect(opts)
pp GoodData::Command::Process.list(options.merge(global_options))
end
end
- c.desc "Gives you some basic info about the process"
+ c.desc 'Gives you some basic info about the process'
c.command :get do |get|
get.action do |global_options, options, args|
opts = options.merge(global_options)
GoodData.connect(opts)
pp GoodData::Command::Process.get(options.merge(global_options))
end
end
- c.desc "Deploys provided directory to the server"
+ c.desc 'Deploys provided directory to the server'
c.command :deploy do |deploy|
deploy.action do |global_options, options, args|
opts = options.merge(global_options)
GoodData.connect(opts)
pp GoodData::Command::Process.deploy(options[:dir], options.merge(global_options))
\ No newline at end of file