Class: CfScript::Scope::Base

Inherits:
Object
  • Object
show all
Includes:
Execution, UI
Defined in:
lib/cf_script/scope.rb

Direct Known Subclasses

App, Root, Target

Constant Summary

Constants included from UI

UI::COLORS, UI::EMOJI, UI::TAGS

Instance Method Summary collapse

Methods included from UI

alert, call_type, debug, detail, emoji, emoji_for, error, info, print_err, print_out, progress, puts_err, puts_out, step, success, tag_char, tag_close, tag_color, tag_format, tag_open, tag_style, title, trace, ui_format, with_color_of

Methods included from Execution

exec_in

Constructor Details

#initializeBase

Returns a new instance of Base.



31
32
33
# File 'lib/cf_script/scope.rb', line 31

def initialize
  enter_scope
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object



43
44
45
# File 'lib/cf_script/scope.rb', line 43

def method_missing(m, *args, &block)
  CfScript::Command.run(m, *args, &block)
end

Instance Method Details

#finalizeObject



35
36
37
# File 'lib/cf_script/scope.rb', line 35

def finalize
  exit_scope
end

#spec_for(name) ⇒ Object



39
40
41
# File 'lib/cf_script/scope.rb', line 39

def spec_for(name)
  CfScript.spec_for(name)
end