Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 398fe49

Browse files
committed
[COOK-1680] - Add deploy actions (alias for create) to java_remote_file
1 parent 43cf049 commit 398fe49

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.0.1:
2+
3+
* [COOK-1680] - Add deploy action (alias for create) to java_remote_file
4+
15
## v1.0.0:
26

37
* [COOK-1243] - Initial release - relates to COOK-634.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ License and Author
132132
==================
133133

134134
Author:: Adam Jacob (<[email protected]>)
135-
Author:: Andrea Campi (<[email protected]>)
135+
Author:: Andrea Campi (<[email protected]>)
136+
Author:: Jesse Campbell (<[email protected]>)
136137
Author:: Joshua Timberman (<[email protected]>)
137138
Author:: Seth Chisamore (<[email protected]>)
138139

libraries/provider_java_remote_file.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ def load_current_resource
2828
super
2929
end
3030

31+
def action_deploy
32+
action_create
33+
end
34+
35+
def action_force_deploy
36+
action_create
37+
end
38+
3139
end
3240
end
3341
end

libraries/resource_java_remote_file.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def initialize(name, run_context=nil)
3232
@resource_name = :java_remote_file
3333
@provider = Chef::Provider::JavaRemoteFile
3434
@deploy_to = nil
35+
@allowed_actions.push(:deploy,:force_deploy)
3536
end
3637

3738
def provider

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license "Apache 2.0"
55
description "Deploys and configures Java-based applications"
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version "1.0.0"
7+
version "1.0.1"
88

99
%w{ application java tomcat }.each do |cb|
1010
depends cb

0 commit comments

Comments
 (0)