blazing 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blazing (0.0.13)
4
+ blazing (0.0.14)
5
5
  activesupport (>= 3.0.5)
6
6
  grit
7
7
  i18n
@@ -18,9 +18,7 @@ module Blazing
18
18
 
19
19
  def setup
20
20
  # TODO: Use a Wrapper to Net::SSH
21
- #
22
21
  clone_repository
23
- checkout_correct_branch if @branch
24
22
  add_target_as_remote
25
23
  setup_post_receive_hook
26
24
  end
@@ -66,11 +64,7 @@ module Blazing
66
64
  def clone_command
67
65
  "if [ -e #{@path} ]; then \
68
66
  echo 'directory exists already'; else \
69
- git clone #{config.repository} #{@path} && cd #{@path} && git config receive.denyCurrentBranch ignore; fi"
70
- end
71
-
72
- def checkout_correct_branch
73
- @runner.run "ssh #{@user}@#{@host} 'cd #{@path} && git checkout #{@branch}'" if @branch
67
+ git clone #{config.repository} #{"--branch #{@branch}" if @branch} #{@path} && cd #{@path} && git config receive.denyCurrentBranch ignore; fi"
74
68
  end
75
69
 
76
70
  def clone_repository
@@ -1,3 +1,3 @@
1
1
  module Blazing
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: blazing
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.13
5
+ version: 0.0.14
6
6
  platform: ruby
7
7
  authors:
8
8
  - Felipe Kaufmann
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-18 00:00:00 Z
13
+ date: 2011-07-19 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - ">="
125
125
  - !ruby/object:Gem::Version
126
- hash: -3305365196802226824
126
+ hash: -2643917059137636160
127
127
  segments:
128
128
  - 0
129
129
  version: "0"
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - ">="
134
134
  - !ruby/object:Gem::Version
135
- hash: -3305365196802226824
135
+ hash: -2643917059137636160
136
136
  segments:
137
137
  - 0
138
138
  version: "0"