Class: Kikubari::Deploy
- Inherits:
-
Object
- Object
- Kikubari::Deploy
- Defined in:
- lib/kikubari.rb,
lib/deploy_logger.rb,
lib/deployer/deployer.rb,
lib/deployer/deployer_git.rb,
lib/deployer/deployer_git_wordpress.rb,
lib/configuration/deploy_configuration.rb
Defined Under Namespace
Classes: Configuration, Deployer, GitDeployer, Logger, WordpressGitDeployer
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
- #change(version) ⇒ Object
- #deploy ⇒ Object
-
#initialize(configuration) ⇒ Deploy
constructor
A new instance of Deploy.
- #rollback ⇒ Object
Constructor Details
#initialize(configuration) ⇒ Deploy
Returns a new instance of Deploy.
18 19 20 21 22 |
# File 'lib/kikubari.rb', line 18 def initialize ( configuration ) @config = configuration return rollback if @config.rollback deploy end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
16 17 18 |
# File 'lib/kikubari.rb', line 16 def config @config end |
Instance Method Details
#change(version) ⇒ Object
32 33 34 |
# File 'lib/kikubari.rb', line 32 def change( version ) @logger.print "changing to version #{version}" end |
#deploy ⇒ Object
24 25 26 |
# File 'lib/kikubari.rb', line 24 def deploy get_deployer( @config ).create_deploy_structure.deploy end |
#rollback ⇒ Object
28 29 30 |
# File 'lib/kikubari.rb', line 28 def rollback @logger.print "rollingback" end |