hanzo 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f7887514596c54614932197349ee399470a5d58
4
- data.tar.gz: 8b25c361cda3bbec0307ba5a94e53d1e7fb7b1d5
3
+ metadata.gz: aa7493b5279e5a136b1f204ec813e3892785c23f
4
+ data.tar.gz: 7e7f98199989d0dc95034329e9e0ce693fa67c7d
5
5
  SHA512:
6
- metadata.gz: d128619b5733c910bdc5ae7d59582e32456c579d8207fb68bac20ec65463d6fea985d6f0e2976e45d5d3203f922c734cea677ae64dc8761fff8c19eae932621e
7
- data.tar.gz: d8bcd6a4fdb27bac4446c107074188a4b9eda3222b5758953eb53d4e92a3aa7ec2d3034265ff9a88ac45ef0aa05780e4702c769ed1ab1318931464b74997c07d
6
+ metadata.gz: 24fbce60605372cd4dddc98892f71765296542044206bb78925d9e986ef534ae5b994fba83bb99a68efc4078992e4826478f17af071b05fb053bbfa9f5d62340
7
+ data.tar.gz: 75f91cb45c674cf78e0830e7c8bc569856c050dff3029645701732dfec669996c796ec9689183514a85a7420adc2bbdb574a371608946c2e22e5c489533065ab
data/README.md CHANGED
@@ -40,13 +40,21 @@ production: heroku-app-name-production
40
40
  Adding production
41
41
  ```
42
42
 
43
+ ### Deploy a branch or a tag
44
+
45
+ ```bash
46
+ > bundle exec hanzo deploy qa
47
+
48
+ -----> Branch to deploy: |HEAD|
49
+ ```
50
+
43
51
  ### Install labs
44
52
 
45
53
  Once all your environments are activated, you might want to enable some
46
54
  Heroku labs feature for all your environments.
47
55
 
48
56
  ```bash
49
- > be hanzo install labs
57
+ > bundle exec hanzo install labs
50
58
 
51
59
  -----> Activating Heroku Labs
52
60
  Add preboot? yes
@@ -59,14 +67,6 @@ Heroku labs feature for all your environments.
59
67
  - Enabled for production
60
68
  ```
61
69
 
62
- ### Deploy a branch or a tag
63
-
64
- ```bash
65
- > bundle exec hanzo deploy qa
66
-
67
- -----> Branch to deploy: |HEAD|
68
- ```
69
-
70
70
  ## License
71
71
 
72
72
  `Hanzo` is © 2013 [Mirego](http://www.mirego.com) and may be freely distributed under the [New BSD license](http://opensource.org/licenses/BSD-3-Clause). See the [`LICENSE.md`](https://github.com/mirego/hanzo/blob/master/LICENSE.md) file.
data/lib/hanzo/heroku.rb CHANGED
@@ -3,7 +3,7 @@ module Hanzo
3
3
  class << self
4
4
 
5
5
  def available_labs
6
- `heroku labs`.each_line.to_a.inject([]) do |memo, line|
6
+ Hanzo.run("heroku labs").each_line.to_a.inject([]) do |memo, line|
7
7
  if line = /^\[\s\]\s+(?<name>\w+)\s+(?<description>.+)$/.match(line)
8
8
  memo << [line[:name], line[:description]]
9
9
  else
data/lib/hanzo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hanzo
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
data/lib/hanzo.rb CHANGED
@@ -10,7 +10,7 @@ require 'hanzo/version'
10
10
  module Hanzo
11
11
  def self.run(command)
12
12
  print(command, :green)
13
- `#{command}`
13
+ Bundler.with_clean_env { `#{command}` }
14
14
  end
15
15
 
16
16
  def self.print(text, *colors)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanzo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garneau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-20 00:00:00.000000000 Z
11
+ date: 2013-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler