Class: Readme
- Inherits:
-
Object
- Object
- Readme
- Defined in:
- lib/teuton/readme/readme.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(script_path, config_path) ⇒ Readme
constructor
A new instance of Readme.
- #show ⇒ Object
Methods included from ReadmeDSL
#expect, #expect_fail, #expect_none, #expect_sequence, #get, #gett, #goto, #log, #readme, #run, #run_script, #set, #target, #unique, #unset, #upload
Methods included from DSL
#expect, #expect2, #expect_any, #expect_exit, #expect_fail, #expect_first, #expect_last, #expect_none, #expect_nothing, #expect_ok, #expect_one, #expect_sequence, #get, #get_host, #gett, #goto, #log, #macro, #method_missing, #readme, #remote_tempdir, #remote_tempfile, #respond_to_missing?, #run, #run_script, #send, #set, #target, #tempdir, #tempfile, #unique, #unset, #upload, #upload_one, #weight
Constructor Details
#initialize(script_path, config_path) ⇒ Readme
16 17 18 19 20 21 22 23 |
# File 'lib/teuton/readme/readme.rb', line 16 def initialize(script_path, config_path) @path = {} @path[:script] = script_path @path[:dirname] = File.dirname(script_path) @path[:filename] = File.basename(script_path, ".rb") @path[:config] = config_path reset end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DSL
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
14 15 16 |
# File 'lib/teuton/readme/readme.rb', line 14 def data @data end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
13 14 15 |
# File 'lib/teuton/readme/readme.rb', line 13 def result @result end |
Instance Method Details
#show ⇒ Object
25 26 27 28 29 30 |
# File 'lib/teuton/readme/readme.rb', line 25 def show process_content show_head show_content show_tail end |