Class: Captivate::RemoteScript
- Inherits:
-
Object
- Object
- Captivate::RemoteScript
- Defined in:
- lib/captivate.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#local_path ⇒ Object
readonly
Returns the value of attribute local_path.
-
#remote_path ⇒ Object
readonly
Returns the value of attribute remote_path.
Instance Method Summary collapse
-
#initialize(options) ⇒ RemoteScript
constructor
A new instance of RemoteScript.
Constructor Details
#initialize(options) ⇒ RemoteScript
Returns a new instance of RemoteScript.
152 153 154 155 156 157 158 159 |
# File 'lib/captivate.rb', line 152 def initialize() @command = [:command] @remote_path = [:remote_path] Tempfile.open('captivate_remote_script') do |f| @local_path = f.path f.write(converted_template) end end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
151 152 153 |
# File 'lib/captivate.rb', line 151 def command @command end |
#local_path ⇒ Object (readonly)
Returns the value of attribute local_path.
151 152 153 |
# File 'lib/captivate.rb', line 151 def local_path @local_path end |
#remote_path ⇒ Object (readonly)
Returns the value of attribute remote_path.
151 152 153 |
# File 'lib/captivate.rb', line 151 def remote_path @remote_path end |