Class: Deploy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#applicationObject

Returns the value of attribute application.



7
8
9
# File 'lib/hudson_deployer.rb', line 7

def application
  @application
end

#artifact_urlObject

Returns the value of attribute artifact_url.



7
8
9
# File 'lib/hudson_deployer.rb', line 7

def artifact_url
  @artifact_url
end

#build_numObject

Returns the value of attribute build_num.



7
8
9
# File 'lib/hudson_deployer.rb', line 7

def build_num
  @build_num
end

#userObject

Returns the value of attribute user.



7
8
9
# File 'lib/hudson_deployer.rb', line 7

def user
  @user
end

#versionObject

Returns the value of attribute version.



7
8
9
# File 'lib/hudson_deployer.rb', line 7

def version
  @version
end

Instance Method Details

#debugObject



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