lib/gooddata/cli/commands/scaffold_cmd.rb in gooddata-0.6.0.pre11 vs lib/gooddata/cli/commands/scaffold_cmd.rb in gooddata-0.6.0

- old
+ new

@@ -1,30 +1,32 @@ +# encoding: UTF-8 + require 'pp' -require File.join(File.dirname(__FILE__), "../shared") -require File.join(File.dirname(__FILE__), "../../commands/scaffold") +require_relative '../shared' +require_relative '../../commands/scaffold' GoodData::CLI.module_eval do desc 'Scaffold things' arg_name 'show' command :scaffold do |c| - c.desc "Scaffold a gooddata project blueprint" + c.desc 'Scaffold a gooddata project blueprint' c.command :project do |project| project.action do |global_options, options, args| name = args.first - fail "Name of the project has to be provided" if name.nil? || name.empty? + fail 'Name of the project has to be provided' if name.nil? || name.empty? GoodData::Command::Scaffold.project(name) end end - c.desc "Scaffold a gooddata ruby brick. This is a piece of code that you can run on our platform" + c.desc 'Scaffold a gooddata ruby brick. This is a piece of code that you can run on our platform' c.command :brick do |brick| # brick.arg_name 'name' brick.action do |global_options, options, args| name = args.first - fail "Name of the brick has to be provided" if name.nil? || name.empty? + fail 'Name of the brick has to be provided' if name.nil? || name.empty? GoodData::Command::Scaffold.brick(name) end end end \ No newline at end of file