gisha 0.0.5 → 0.0.6

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: 71693b315b8357c394cd38e1a410a32e93674cd6
4
- data.tar.gz: 0e73a174ac2d38b91f266eb43d02614d327f1338
3
+ metadata.gz: 57acb1b2035e49c0422381f0ac14ac6d7ae788d5
4
+ data.tar.gz: 12f62035abfa1852276bb229dd552e0ff7d5d7c4
5
5
  SHA512:
6
- metadata.gz: fadfaea2b82219bd2bcd6ddb8b157fc1a50b5ea256e1ac38724c7494f9d89f44ace13d46e79a039d269461cd720216cab1ac33c0ae65cb499a44c02dee349932
7
- data.tar.gz: ed32ba0410387ec244dd6dc08547c3287c7d993aa5ff6459b45ea2e816fb0eb6c26c497a9639acad859c61905d01f7814680ab2f0074643bf82c70b83a661eb0
6
+ metadata.gz: 59d6408e94d56361376249f90d6331f0dfa282223b4bdc346a13d1051e4cebfe806423eb2244813ef8bf391768d098637e2d0dacd21299d7928ffe071a92bca6
7
+ data.tar.gz: e45816bcc2091e9632741b96f5ed9abd29036a406586c6ba343f6bf60727c25528eadd9f05df4ac356fbbfa3f4fb1ad484c26a47ca099618d4ab995f43533981
data/hooks/update CHANGED
@@ -10,7 +10,7 @@ deploy_url = "#{ENV['SPASS_CONTROLLER_URL']}/api/deploy/start"
10
10
  require 'gisha'
11
11
 
12
12
  begin
13
- Gisha::CLI.run 'gisha', ['update', deploy_url, key_id, repository_path, new_revision]
13
+ Gisha::CLI.run 'gisha', ['deploy', deploy_url, key_id, repository_path, new_revision]
14
14
  rescue
15
15
  exit 1
16
16
  end
data/lib/gisha/cli.rb CHANGED
@@ -17,7 +17,7 @@ module Gisha
17
17
  class AddKeyCommand < Clamp::Command
18
18
  parameter 'ID', 'id to identify the key'
19
19
  parameter 'KEY', 'public key that was provided to the server'
20
- parameter 'AUTH_FILE', 'file containing public keys for public key authentication;'
20
+ parameter 'AUTH_FILE', 'file containing public keys for public key authentication'
21
21
 
22
22
  def execute
23
23
  Commands::Key.new(auth_file, id, key).add
@@ -41,7 +41,11 @@ module Gisha
41
41
  end
42
42
 
43
43
  def write(msg)
44
- puts "\e[1G-----> #{msg}\n"
44
+ @stdout ||= begin
45
+ $stdout.sync = true
46
+ $stdout
47
+ end
48
+ @stdout.write "\e[1G-----> #{msg}\n"
45
49
  end
46
50
 
47
51
  end
data/lib/gisha/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gisha
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gisha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salvatore Ferrucci
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-07 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp