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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0e037fadd28a817a765b5c071df2f4601f8a980
4
- data.tar.gz: 71630ccbb65ead89a976335523cf4ef9abca5ce5
3
+ metadata.gz: 133b1a8c57643880692d9581f88fbc8bbc960165
4
+ data.tar.gz: d338a2d9317d8f053a64eae794f78d44860b8426
5
5
  SHA512:
6
- metadata.gz: 59c723b2a7db339e5b7b379b625aa5c21c079784d871407da0faba19ac3847c298b1cd746c3cad5e18bbf879b6cabe9f7424b9edaa3436fad05f658076b149cf
7
- data.tar.gz: 0e8af047cdb60fcc51344e312794ec659b6c337dd18677a0a3836cc76a73fd05e43e1b5e2ed85aef8c00cbee8de49cd0aedcdc755a5ecc20c1304b16f36d3730
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RailsZero
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2014-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails