rails-zero 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/app/deployers/rails_zero/git_deployer.rb +5 -1
- data/lib/rails_zero/config.rb +6 -1
- data/lib/rails_zero/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 133b1a8c57643880692d9581f88fbc8bbc960165
|
4
|
+
data.tar.gz: d338a2d9317d8f053a64eae794f78d44860b8426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04772ed99cbe05da09a4206febbcc70422c400de4576ce4580523b5a2b829131d35865900f925771c1822b4b3c3cf5187e673d17e34f22e49bf0d91901339f6f
|
7
|
+
data.tar.gz: 433ba51630f98178006b36214cac7654d017775dc9be22d01781f6e8916a620fb697c2d44bdc7f4b8b85e9efbe85984895d713e2ab7bd51f14e097db06b473ad
|
@@ -42,7 +42,7 @@ module RailsZero
|
|
42
42
|
commands << "#{git_binary} remote add origin #{git_remote_url}"
|
43
43
|
commands << "#{git_binary} add --all ."
|
44
44
|
commands << "#{git_binary} commit -m \"Deploy.\""
|
45
|
-
commands << "#{git_binary} push -u --force origin master"
|
45
|
+
commands << "#{git_binary} push -u --force origin master:#{git_remote_ref}"
|
46
46
|
stdout_str, stderr_str, status = Open3.capture3(commands.join(" && "))
|
47
47
|
raise RailsZero::GitError,
|
48
48
|
"Cannot git-deploy #{extracted_package_path} (binary=#{git_binary} "\
|
@@ -60,5 +60,9 @@ module RailsZero
|
|
60
60
|
def git_remote_url
|
61
61
|
RailsZero.config.deployment.url
|
62
62
|
end
|
63
|
+
|
64
|
+
def git_remote_ref
|
65
|
+
RailsZero.config.deployment.git_remote_ref
|
66
|
+
end
|
63
67
|
end
|
64
68
|
end
|
data/lib/rails_zero/config.rb
CHANGED
@@ -10,12 +10,17 @@ module RailsZero
|
|
10
10
|
|
11
11
|
class GitDeployment
|
12
12
|
attr_accessor :url,
|
13
|
-
:git_binary
|
13
|
+
:git_binary,
|
14
|
+
:git_remote_ref
|
14
15
|
|
15
16
|
def git_binary
|
16
17
|
@git_binary ||=
|
17
18
|
File.expand_path(File.join('..', '..', '..', 'bin', 'git'), __FILE__)
|
18
19
|
end
|
20
|
+
|
21
|
+
def git_remote_ref
|
22
|
+
@git_remote_ref ||= 'master'
|
23
|
+
end
|
19
24
|
end
|
20
25
|
|
21
26
|
class Site
|
data/lib/rails_zero/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Bissinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|