Class: Tug::Deployer
- Inherits:
-
Object
- Object
- Tug::Deployer
- Defined in:
- lib/tug/deployment/deployer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_token ⇒ Object
readonly
Returns the value of attribute api_token.
-
#dsym ⇒ Object
readonly
Returns the value of attribute dsym.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#notify ⇒ Object
readonly
Returns the value of attribute notify.
Instance Method Summary collapse
- #deploy ⇒ Object
-
#initialize(options) ⇒ Deployer
constructor
A new instance of Deployer.
Constructor Details
#initialize(options) ⇒ Deployer
Returns a new instance of Deployer.
10 11 12 13 14 15 16 |
# File 'lib/tug/deployment/deployer.rb', line 10 def initialize() @file = [:file] @api_token = [:api_token] @notify = [:notify] @dsym = [:dsym] @notes = [:release_notes] end |
Instance Attribute Details
#api_token ⇒ Object (readonly)
Returns the value of attribute api_token.
6 7 8 |
# File 'lib/tug/deployment/deployer.rb', line 6 def api_token @api_token end |
#dsym ⇒ Object (readonly)
Returns the value of attribute dsym.
5 6 7 |
# File 'lib/tug/deployment/deployer.rb', line 5 def dsym @dsym end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
4 5 6 |
# File 'lib/tug/deployment/deployer.rb', line 4 def file @file end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
7 8 9 |
# File 'lib/tug/deployment/deployer.rb', line 7 def notes @notes end |
#notify ⇒ Object (readonly)
Returns the value of attribute notify.
8 9 10 |
# File 'lib/tug/deployment/deployer.rb', line 8 def notify @notify end |
Instance Method Details
#deploy ⇒ Object
18 19 20 21 22 |
# File 'lib/tug/deployment/deployer.rb', line 18 def deploy IO.popen("curl #{url} -X POST -# #{params}") do |pipe| puts pipe.read end end |