osbro-git-deploy 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/git-deploy +1 -1
- data/lib/git_deploy.rb +1 -13
- metadata +6 -8
data/bin/git-deploy
CHANGED
data/lib/git_deploy.rb
CHANGED
@@ -49,8 +49,8 @@ class GitDeploy < Thor
|
|
49
49
|
def hooks
|
50
50
|
hooks_dir = File.join(LOCAL_DIR, 'hooks')
|
51
51
|
remote_dir = "#{deploy_to}/.git/hooks"
|
52
|
+
system "sed -i'' -e 's/production/#{options[:env]}/' #{hooks_dir}/post-receive.sh" unless options[:env] == 'production'
|
52
53
|
scp_upload "#{hooks_dir}/post-receive.sh" => "#{remote_dir}/post-receive"
|
53
|
-
run "sed -i'' -e 's/production/#{options[:env]}/' #{remote_dir}/post-receive" unless options[:env] == 'production'
|
54
54
|
run "chmod +x #{remote_dir}/post-receive"
|
55
55
|
end
|
56
56
|
|
@@ -64,18 +64,6 @@ class GitDeploy < Thor
|
|
64
64
|
run "cd #{deploy_to} && git reset --hard ORIG_HEAD"
|
65
65
|
invoke :restart
|
66
66
|
end
|
67
|
-
|
68
|
-
desc "tag", "Checkout the tag <tag>"
|
69
|
-
def tag(tag)
|
70
|
-
run "cd #{deploy_to} && git reset --hard && git checkout #{tag}"
|
71
|
-
restart
|
72
|
-
end
|
73
|
-
|
74
|
-
desc "reset", "Bring the remote up to date with the current branch"
|
75
|
-
def reset
|
76
|
-
run "cd #{deploy_to} && git reset --hard && git checkout master"
|
77
|
-
restart
|
78
|
-
end
|
79
67
|
|
80
68
|
desc "log", "Shows the last part of the deploy log on the server"
|
81
69
|
method_option :tail, :aliases => '-t', :type => :boolean, :default => false
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osbro-git-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 5
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 7
|
10
|
+
version: 0.5.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Mislav Marohni\xC4\x87"
|
@@ -16,8 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-
|
20
|
-
default_executable:
|
19
|
+
date: 2012-07-16 00:00:00 Z
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
23
22
|
name: thor
|
@@ -81,7 +80,6 @@ files:
|
|
81
80
|
- lib/hooks/post-receive.sh
|
82
81
|
- README.markdown
|
83
82
|
- LICENSE
|
84
|
-
has_rdoc: true
|
85
83
|
homepage: https://github.com/osbornebrook/git-deploy
|
86
84
|
licenses: []
|
87
85
|
|
@@ -111,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
109
|
requirements: []
|
112
110
|
|
113
111
|
rubyforge_project:
|
114
|
-
rubygems_version: 1.
|
112
|
+
rubygems_version: 1.8.24
|
115
113
|
signing_key:
|
116
114
|
specification_version: 3
|
117
115
|
summary: Simple git push-based application deployment
|