Method: Thor::Actions#destination_root=

Defined in:
lib/thor/actions.rb

#destination_root=(root) ⇒ Object

Sets the root for this thor class. Relatives path are added to the directory where the script was invoked and expanded.

[View source]

106
107
108
109
# File 'lib/thor/actions.rb', line 106

def destination_root=(root)
  @destination_stack ||= []
  @destination_stack[0] = File.expand_path(root || "")
end