Class: Pushapp::Tasks::Script
Direct Known Subclasses
Instance Attribute Summary collapse
-
#script ⇒ Object
readonly
Returns the value of attribute script.
Attributes inherited from Base
Instance Method Summary collapse
- #cmd ⇒ Object
-
#initialize(script, options = {}) ⇒ Script
constructor
A new instance of Script.
- #inspect ⇒ Object
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, ={} super() @script = script end |
Instance Attribute Details
#script ⇒ Object (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
#cmd ⇒ Object
14 15 16 |
# File 'lib/pushapp/tasks/script.rb', line 14 def cmd [env, script] end |
#inspect ⇒ Object
18 19 20 |
# File 'lib/pushapp/tasks/script.rb', line 18 def inspect "script: #{script}" end |