Class: Deploy
- Inherits:
-
Object
- Object
- Deploy
- Defined in:
- lib/hudson_deployer.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
-
#artifact_url ⇒ Object
Returns the value of attribute artifact_url.
-
#build_num ⇒ Object
Returns the value of attribute build_num.
-
#user ⇒ Object
Returns the value of attribute user.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #debug ⇒ Object
-
#initialize(&block) ⇒ Deploy
constructor
A new instance of Deploy.
Constructor Details
#initialize(&block) ⇒ Deploy
Returns a new instance of Deploy.
13 14 15 16 17 |
# File 'lib/hudson_deployer.rb', line 13 def initialize(&block) if block_given? yield self end end |
Instance Attribute Details
#application ⇒ Object
Returns the value of attribute application.
7 8 9 |
# File 'lib/hudson_deployer.rb', line 7 def application @application end |
#artifact_url ⇒ Object
Returns the value of attribute artifact_url.
7 8 9 |
# File 'lib/hudson_deployer.rb', line 7 def artifact_url @artifact_url end |
#build_num ⇒ Object
Returns the value of attribute build_num.
7 8 9 |
# File 'lib/hudson_deployer.rb', line 7 def build_num @build_num end |
#user ⇒ Object
Returns the value of attribute user.
7 8 9 |
# File 'lib/hudson_deployer.rb', line 7 def user @user end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/hudson_deployer.rb', line 7 def version @version end |
Instance Method Details
#debug ⇒ Object
19 20 21 22 23 24 |
# File 'lib/hudson_deployer.rb', line 19 def debug puts "Deployment Configuration:" [:application, :version, :user, :build_num].each do |f| puts " #{f}: #{send(f)}" end end |