class Gzr::Commands::Space::Create
Public Class Methods
new(name,parent_space, options)
click to toggle source
Calls superclass method
Gzr::Command::new
# File lib/gzr/commands/space/create.rb, line 32 def initialize(name,parent_space, options) super() @name = name @parent_space = parent_space @options = options end
Public Instance Methods
execute(input: $stdin, output: $stdout)
click to toggle source
# File lib/gzr/commands/space/create.rb, line 39 def execute(input: $stdin, output: $stdout) space = nil with_session do space = create_space(@name, @parent_space) output.puts "Created space #{space.id}" unless @options[:plain] output.puts space.id if @options[:plain] end end