Method: CfScript::Scope::Target#target
- Defined in:
- lib/cf_script/scope/target.rb
#target(*args, &block) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cf_script/scope/target.rb', line 11 def target(*args, &block) unless args.empty? # TODO: check if it's the same org too if args.first.to_s == current_space return @current_target end end @current_target = CfScript::Command.run(:target, *args) block_given? ? yield(@current_target) : @current_target end |