Class: Pushapp::Tasks::Script

Inherits:
Base
  • Object
show all
Defined in:
lib/pushapp/tasks/script.rb

Direct Known Subclasses

Rake

Instance Attribute Summary collapse

Attributes inherited from Base

#logger, #options

Instance Method Summary collapse

Methods inherited from Base

#app_name_from_path, #env, #env_options, register_as, #run, #sudo, #system

Constructor Details

#initialize(script, options = {}) ⇒ Script

Returns a new instance of Script.



8
9
10
11
12
# File 'lib/pushapp/tasks/script.rb', line 8

def initialize script, options={}
  super(options)

  @script = script
end

Instance Attribute Details

#scriptObject (readonly)

Returns the value of attribute script.



6
7
8
# File 'lib/pushapp/tasks/script.rb', line 6

def script
  @script
end

Instance Method Details

#cmdObject



14
15
16
# File 'lib/pushapp/tasks/script.rb', line 14

def cmd
  [env, script]
end

#inspectObject



18
19
20
# File 'lib/pushapp/tasks/script.rb', line 18

def inspect
  "script: #{script}"
end