pushapp 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: 5a1d8ee02e33cd268cbc2b1303b646db560e2e98
4
- data.tar.gz: ad828cb4093f25c0239ec0c3c9cf7d950ccc5c7b
3
+ metadata.gz: a90bcaeac4b94c006852afa1b39a6a6e47fac27f
4
+ data.tar.gz: 8c252eb2cf6063b113b125194e918b43d096ec88
5
5
  SHA512:
6
- metadata.gz: 46c4f58b16145cbedaf7462b6a99916723602e02db55eecbc41165563a151a5ff4efbb1f93eac8cac82c65643dda8e6be46ab44e31c313a17f467b6e7d053a78
7
- data.tar.gz: d07572f75d42a15d68859f7996d5a5382841fcc03bd8faea73c0f0b4330dda06fca06b911f7bb54ec94f23720ad223f00e09eb20064f42d075329152ac157591
6
+ metadata.gz: fc6c2a10d4e21936629acc2ac1d3077d1a189040d5dd88e6050196c3f9ce784ac705251cba3c1076fa56ee9cc2aa12eb144f1fc8d80d0f1c2b191b82d542183b
7
+ data.tar.gz: 717c1c269b6153a34d652565871d1e31e575918de16e0222ffc0886f3fbc60317c482b94dfb123c87c25d237a20e463063a22253515327ad34dc01c771d5126d
@@ -15,31 +15,31 @@ module Pushapp
15
15
 
16
16
  def init
17
17
  logger.info "Creating an example config file in #{Pushapp::DEFAULT_CONFIG_LOCATION}"
18
- logger.info "Customize it to your needs"
18
+ logger.info 'Customize it to your needs'
19
19
  create_config_directory
20
20
  write_config_file
21
21
  end
22
22
 
23
23
  def update_refs
24
- logger.info "Updating .git/config. Setting up refs to all remotes"
24
+ logger.info 'Updating .git/config. Setting up refs to all remotes'
25
25
  Pushapp::Git.new.update_tracked_repos(config)
26
26
  end
27
27
 
28
28
  def list_remotes
29
- logger.info "Known remotes:"
29
+ logger.info 'Known remotes:'
30
30
  remotes_table = config.remotes.map {|r| [r.full_name, r.location, r.env]}
31
31
  remotes_table.unshift ['Full Name', 'Location', 'ENV']
32
32
  logger.shell.print_table(remotes_table)
33
33
  end
34
34
 
35
35
  def setup
36
- logger.info "Setting up remotes"
36
+ logger.info 'Setting up remotes'
37
37
  remotes.each { |r| r.setup! }
38
38
  update
39
39
  end
40
40
 
41
41
  def update
42
- logger.info "Updating remotes"
42
+ logger.info 'Updating remotes'
43
43
  remotes.each { |r| r.update! }
44
44
  end
45
45
 
@@ -63,7 +63,7 @@ module Pushapp
63
63
  logger.info "STARTING TASKS ON EVENT #{event}"
64
64
  remotes.each do |r|
65
65
  r.tasks_on(event).each do |t|
66
- logger.info "run: #{t.inspect}"
66
+ logger.info "task: #{t.inspect}"
67
67
  Pushapp::Pipe.run(t)
68
68
  end
69
69
  end
@@ -1,5 +1,4 @@
1
1
  require 'pushapp/remote'
2
- require 'pushapp/tasks/base'
3
2
 
4
3
  class Pushapp::Config
5
4
 
@@ -9,6 +8,14 @@ class Pushapp::Config
9
8
  @@known_tasks = {}
10
9
 
11
10
  def self.parse(configuration_file = nil)
11
+ require 'pushapp/tasks/base'
12
+ require 'pushapp/tasks/script'
13
+ require 'pushapp/tasks/rake'
14
+ require 'pushapp/tasks/upstart'
15
+ require 'pushapp/tasks/nginx_export'
16
+ require 'pushapp/tasks/foreman_export'
17
+ require 'pushapp/tasks/unicorn_signal'
18
+
12
19
  config = self.new(configuration_file)
13
20
  config.instance_eval(File.read(config.file))
14
21
 
@@ -22,7 +22,7 @@ module Pushapp
22
22
  end
23
23
 
24
24
  def unicorn_pid_file
25
- options[:unicorn_pid_file] || "tmp/pids/unicorn.pid"
25
+ options[:unicorn_pid_file] || 'tmp/pids/unicorn.pid'
26
26
  end
27
27
 
28
28
  def unicorn_signal
@@ -1,3 +1,3 @@
1
1
  module Pushapp
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
@@ -1,8 +1,4 @@
1
1
  # Pushapp Configuration File
2
- require 'pushapp/tasks/upstart'
3
- require 'pushapp/tasks/nginx_export'
4
- require 'pushapp/tasks/foreman_export'
5
- require 'pushapp/tasks/unicorn_restart'
6
2
 
7
3
  # Sample remote definition:
8
4
  #
@@ -36,5 +32,5 @@ on :push do
36
32
  rake('db:migrate')
37
33
  rake('assets:precompile', env: {RAILS_GROUP: :assets})
38
34
  task(:upstart_restart) # restarting options[:upstart_jobs]
39
- task(:unicorn_restart) # sending USR2 signal to unicorn
35
+ task(:unicorn_signal) # sending USR2 signal to unicorn
40
36
  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.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev