pushapp 0.1.2 → 0.1.3

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: 98a8bbfa81a6ec450adb340f2d5c8210b265ed4b
4
- data.tar.gz: c188d207ccc5b569cb5c46a239679e38ee24e8c1
3
+ metadata.gz: 57b81e15c1e8db1708508cf2e85af90e4f503d35
4
+ data.tar.gz: 8d994d3c9a03aaaee0759c2e29b84629730906a0
5
5
  SHA512:
6
- metadata.gz: 03bb4b8fbd3fe162315affabdb4aa6b18c3249b2ed9bc4579384fc782e9224dfcb15ed9efdd00bca05a3bb022a613d8831b5e4ccab0e6582d54f61784979e3c1
7
- data.tar.gz: df2a3f65d229521cf013be4a56f37eadde3893fec76d6783781f5ce86120b1c4a688ee6fc262d3a5e2098fc5cc93cb0ab07a1ba2b32eb5eeb8c2b4f1cc75ac7c
6
+ metadata.gz: e56acd9b75caa5da3704cd9f71994347e24e509c2aea765a59535638ff69168ea707141204be5a32f9b4f1bc43a3f8daec3b35ece2c814b542f42aab526afdea
7
+ data.tar.gz: 3c12ee0f5b3133a09fde7c76b4938086a323f78530fadad3685cbb8d520ed95afb1e9b916517661824ac66af1c9648b1009ff033cec104efd774e826bffccebf
data/lib/pushapp/cli.rb CHANGED
@@ -29,14 +29,6 @@ module Pushapp
29
29
  Pushapp::Commands.run(:update_refs, options: options)
30
30
  end
31
31
 
32
- desc 'update REMOTES', 'Re-Generate and upload hook based on current configuration'
33
-
34
- method_option :file, type: :string, aliases: '-f', banner: 'Specify a configuration file'
35
-
36
- def update(*remotes)
37
- Pushapp::Commands.run(:update, remotes: remotes, options: options)
38
- end
39
-
40
32
  desc 'remotes', 'List all known remotes'
41
33
 
42
34
  method_option :file, type: :string, aliases: '-f', banner: 'Specify a configuration file'
@@ -5,6 +5,7 @@ module Pushapp
5
5
  attr_reader :logger
6
6
 
7
7
  def self.run(command, options = {})
8
+ $stdout.sync = true
8
9
  self.new(options.merge({ command: command })).send(command)
9
10
  end
10
11
 
@@ -35,12 +36,7 @@ module Pushapp
35
36
  def setup
36
37
  logger.info 'Setting up remotes'
37
38
  remotes.each { |r| r.setup! }
38
- update
39
- end
40
-
41
- def update
42
- logger.info 'Updating remotes'
43
- remotes.each { |r| r.update! }
39
+ update_refs
44
40
  end
45
41
 
46
42
  def tasks
@@ -71,12 +71,6 @@ class Pushapp::Remote
71
71
  #
72
72
  def setup!
73
73
  run "#{init_repository} && #{setup_repository}"
74
- end
75
-
76
- #
77
- # Update git remote and hook
78
- #
79
- def update!
80
74
  Pushapp::Hook.new(self).setup
81
75
  end
82
76
 
@@ -1,3 +1,3 @@
1
1
  module Pushapp
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev