Sha256: 41199fc918a014361ca333c77ac04384ed10667d715dfcb376e044c5edacc7f0
Contents?: true
Size: 932 Bytes
Versions: 1
Compression:
Stored size: 932 Bytes
Contents
# encoding: UTF-8 require 'pp' 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.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? 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.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? GoodData::Command::Scaffold.brick(name) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.11 | lib/gooddata/cli/commands/scaffold_cmd.rb |