Class: Captivate::RemoteScript

Inherits:
Object
  • Object
show all
Defined in:
lib/captivate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @command = options[:command]
  @remote_path = options[: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