hanzo 1.0.2 → 1.1.0

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
- SHA1:
3
- metadata.gz: b0effa72e41e7564a3280cd270a5acab86051374
4
- data.tar.gz: ebb90aef37d72e6dcb20cdc540275d73855224b8
2
+ SHA256:
3
+ metadata.gz: 290405d45a84ebf4e33e50cb8cdbcbe24c11841073a21739afd05c368f36b1d3
4
+ data.tar.gz: ad08e638c4b8cf91620982fb662645bc096c8176a58b2270fc015b349a2c4704
5
5
  SHA512:
6
- metadata.gz: 283bbde270106fa3ce7c0e4c9e2243a0e42670810d8c3066c4760dd315607497334f55e7e81a85dae4b5b27c4693a6ef609f388cb8e773cb1f3fb9e4e04ac6ee
7
- data.tar.gz: 01be1f751fe618b163980d75340829cd5e3913ad6fc896fb1a3e8270e9ec13ef5a8758d007eab5cad64975bdfae320aee2894ac956b0059cf86569a12357713c
6
+ metadata.gz: e7388b062c22e59b25eb6fde535943aa71817c22de2e85dac8b0fb579b85d72183b32856262818e896e61a5047d22912a70b146a295e45a59bc90d0e53c8048b
7
+ data.tar.gz: 0d30be502353ae1c5de32f547d5ddcf1e8c3fab1fb6bac6bf8de3b359750a21a388b36039e3e3b738287e982bb1c1a8e70c3ca7afe6bae41af914ce2be794e5b
data/README.md CHANGED
@@ -56,13 +56,13 @@ $ hanzo install remotes
56
56
  -----> Creating git remotes
57
57
  Adding qa
58
58
  git remote rm qa 2>&1 > /dev/null
59
- git remote add qa git@heroku.com:heroku-app-name-qa.git
59
+ git remote add qa https://git.heroku.com/heroku-app-name-qa.git
60
60
  Adding staging
61
61
  git remote rm staging 2>&1 > /dev/null
62
- git remote add staging git@heroku.com:heroku-app-name-staging.git
62
+ git remote add staging https://git.heroku.com/heroku-app-name-staging.git
63
63
  Adding production
64
64
  git remote rm production 2>&1 > /dev/null
65
- git remote add production git@heroku.com:heroku-app-name-production.git
65
+ git remote add production https://git.heroku.com/heroku-app-name-production.git
66
66
  ```
67
67
 
68
68
  #### Labs
@@ -188,7 +188,7 @@ Running iex -S mix on heroku-app-name-qa... up
188
188
  ## License
189
189
 
190
190
  `Hanzo` is © 2013-2018 [Mirego](http://www.mirego.com) and may be freely
191
- distributed under the [New BSD license](http://opensource.org/licenses/BSD-3-Clause). See the
191
+ distributed under the [New BSD license](http://opensource.org/licenses/BSD-3-Clause). See the
192
192
  [`LICENSE.md`](https://github.com/mirego/hanzo/blob/master/LICENSE.md) file.
193
193
 
194
194
  ## About Mirego
data/lib/hanzo/cli.rb CHANGED
@@ -7,7 +7,7 @@ require 'hanzo/modules/console'
7
7
  module Hanzo
8
8
  class CLI < Base
9
9
  def run
10
- @options.parse!(@args) if @opts.respond_to? :parse!
10
+ @options.parse!(@args) if @options.respond_to? :parse!
11
11
  puts @options unless @options.to_s == "Usage: hanzo [options]\n"
12
12
  end
13
13
 
@@ -18,7 +18,10 @@ module Hanzo
18
18
  end
19
19
 
20
20
  def initialize_cli
21
- initialize_help && return if @app.nil?
21
+ @options.on('-v', '--version', 'Print version') do
22
+ puts "Hanzo #{Hanzo::VERSION}"
23
+ exit
24
+ end
22
25
 
23
26
  begin
24
27
  @options = Hanzo.const_get(@app.capitalize).new(@args).options
@@ -40,8 +43,7 @@ module Hanzo
40
43
 
41
44
  Options:
42
45
  BANNER
43
- @options.on('-h', '--help', 'You\'re looking at it.') { puts @options }
44
- @options.on('-v', '--version', 'Print version') { puts "Hanzo #{Hanzo::VERSION}" }
46
+ @options.on('-h', '--help', 'You\'re looking at it.')
45
47
  end
46
48
  end
47
49
  end
@@ -12,7 +12,7 @@ module Hanzo
12
12
  def self.add_remote(app, env)
13
13
  Hanzo.print "Adding #{env}"
14
14
  Hanzo.run "git remote rm #{env} 2>&1 > /dev/null"
15
- Hanzo.run "git remote add #{env} git@heroku.com:#{app}.git"
15
+ Hanzo.run "git remote add #{env} https://git.heroku.com/#{app}.git"
16
16
  end
17
17
 
18
18
  def self.environments
data/lib/hanzo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hanzo
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
@@ -46,7 +46,7 @@ describe Hanzo::CLI do
46
46
  heroku_remotes.each do |env, app|
47
47
  expect(Hanzo).to receive(:print).with("Adding #{env}")
48
48
  expect(Hanzo).to receive(:run).with("git remote rm #{env} 2>&1 > /dev/null")
49
- expect(Hanzo).to receive(:run).with("git remote add #{env} git@heroku.com:#{app}.git")
49
+ expect(Hanzo).to receive(:run).with("git remote add #{env} https://git.heroku.com/#{app}.git")
50
50
  end
51
51
  end
52
52
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanzo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garneau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-22 00:00:00.000000000 Z
12
+ date: 2021-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -153,8 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubyforge_project:
157
- rubygems_version: 2.6.8
156
+ rubygems_version: 3.0.3
158
157
  signing_key:
159
158
  specification_version: 4
160
159
  summary: Hanzo is a sharp tool to handle deploying an application on Heroku on multiple