Class: Wakame::Command::CloneService

Inherits:
Object
  • Object
show all
Includes:
Wakame::Command
Defined in:
lib/wakame/command/clone_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Wakame::Command

included, #options=, #params, #run

Instance Attribute Details

#prop_nameObject (readonly)

Returns the value of attribute prop_name.



5
6
7
# File 'lib/wakame/command/clone_service.rb', line 5

def prop_name
  @prop_name
end

Instance Method Details

#parser(args) ⇒ Object



7
8
9
10
# File 'lib/wakame/command/clone_service.rb', line 7

def parser(args)
  raise CommandArgumentError, "Property name has to be given " if args.size < 1
  @prop_name = args.shift
end