depkit 0.0.0.pre1 → 0.0.0

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODU4MmU2ODU2MDBkMGZjYTU4Y2Q1MWQ1OGNlZmVjYTJmNjM4NzFkZg==
4
+ MmU1ODk2NjgxZjRiMjYxMjkxZDIwZGYyYzE5YmRmZGY3MmM5Mzc4ZA==
5
5
  data.tar.gz: !binary |-
6
- OTA3OTVhMWNiN2EzZDM5OGZmYmU4Y2Y2NDBjMjMzOTEzZjhjZTlhMw==
6
+ ZjA1ODliZTQ0ZWZmZWRmNjUxOTJjMjZiYjlmNjBhZjQ0MGQ5NDU1Nw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NWFhOGFiMmIzNDBjODk4ZTk5YjhmNmQxMTU2MjQyOWM4ODdhYmRiYWVjYWQ5
10
- NjA3YmEwNWE3ZGRjOWNhOGJjMTc2MTczMTczNTBkNDQ3NmQwYzkwMzc3ZGVk
11
- MGY3MWU4ODg4MmQ5OGU4MTE3ODMzZjdjY2Q5MDk0NzgyMDYwODQ=
9
+ NjQzYzI1MzFjMmYzODExZTljNGRjYzliYzBkNGU1YzExOWI1NjcwN2NkNGMy
10
+ ZTRhMWM1N2NlNjNkYjk4YjhjYWY5YzJkYTljYzc5MjFlYWIwYmUzZmU0NDA3
11
+ ZjRkMDg2NzVlMmVhZDA5MTQ4Y2UxYTcxY2QyZDU2M2VmOWE3MTA=
12
12
  data.tar.gz: !binary |-
13
- MDY1ZGJmMjQwM2I5NDI1Zjk1YjUwNWUxODM4NGJhMGM3NzM2Y2NmMmVjZmYz
14
- NjVlM2I5MjA2YjQ0OWRlNDY5YmQ5NDU2NTYxYzAzZDkxZjk1NDRkNzQyNGYy
15
- YTllNjNjODY4NjA5OWU0ZGJkNmFmY2YxYzJmMjA0ZDc4YmU1Yzc=
13
+ ODI3ZDBkY2VhNGJhYWQ5NmNiMzQyZjllYzEzYTc1ZmZkNGE4MTdiOGIyZTY0
14
+ MDE0YmFhMjBiYzI1MGUyYzk2ZGRlMmQxYmVkZWIwZTQ2MDI1OWUyZGQzNDlk
15
+ NTgzOWRkYzhlNWNkNzZiZDIyOTViOWU3ZDcwNDUyN2ZiNDJlY2M=
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Depkit
1
+ depkit
2
2
  ======
3
3
 
4
4
  A deployment utility for Rails apps, eventually.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |specification|
4
4
  specification.name = 'depkit'
5
- specification.version = '0.0.0.pre1'
5
+ specification.version = '0.0.0'
6
6
  specification.platform = Gem::Platform::RUBY
7
7
  specification.summary = "Depkit"
8
8
  specification.description = "A deployment tool for Rails apps."
@@ -3,6 +3,4 @@ module Depkit
3
3
 
4
4
  require 'depkit/railtie' if defined?(Rails)
5
5
 
6
- require 'depkit/utilities'
7
-
8
6
  end
@@ -67,6 +67,11 @@ namespace :depl do
67
67
  "Deleting releases older than the #{CONFIG['keep_releases']} latest..."
68
68
  )
69
69
 
70
+ exec_remotely(
71
+ "cd #{deployment_root}/releases/#{release_dir_name} && bundle exec rake ts:index RAILS_ENV=production && bundle exec rake ts:rebuild RAILS_ENV=production",
72
+ 'Rebuilding Sphinx indexes...'
73
+ )
74
+
70
75
  print_to_console('', "\n\n")
71
76
 
72
77
  print_to_console('', "All done!\n\n")
@@ -95,14 +100,6 @@ namespace :depl do
95
100
  )
96
101
  end
97
102
 
98
- desc 'Rebuild Sphinx indexes on the production server.'
99
- task :rebuild_sphinx_indexes => :environment do
100
- exec_remotely(
101
- "cd #{deployment_root}/releases/#{release_dir_name} && bundle exec rake ts:index RAILS_ENV=production && bundle exec rake ts:rebuild RAILS_ENV=production",
102
- 'Rebuilding Sphinx indexes...'
103
- )
104
- end
105
-
106
103
  desc 'Roll back to previous release.'
107
104
  task :roll_back => :environment do
108
105
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre1
4
+ version: 0.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan Michaels
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-10 00:00:00.000000000 Z
11
+ date: 2013-09-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A deployment tool for Rails apps.
14
14
  email: ethanmichaels@gmail.com
@@ -22,7 +22,6 @@ files:
22
22
  - depkit.gemspec
23
23
  - lib/depkit.rb
24
24
  - lib/depkit/railtie.rb
25
- - lib/depkit/utilities.rb
26
25
  - tasks/depkit.rake
27
26
  homepage: https://github.com/EthanMichaels/depkit
28
27
  licenses:
@@ -39,9 +38,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
39
38
  version: '0'
40
39
  required_rubygems_version: !ruby/object:Gem::Requirement
41
40
  requirements:
42
- - - ! '>'
41
+ - - ! '>='
43
42
  - !ruby/object:Gem::Version
44
- version: 1.3.1
43
+ version: '0'
45
44
  requirements: []
46
45
  rubyforge_project:
47
46
  rubygems_version: 2.0.6
@@ -1,45 +0,0 @@
1
- module Utils
2
-
3
- def exec_remotely_in_dir(dir, command, announcement = nil)
4
- if announcement.present?
5
- exec_remotely("cd #{dir} && #{command}", announcement)
6
- else
7
- exec_remotely("cd #{dir} && #{command}")
8
- end
9
- end
10
-
11
- def exec_remotely(command, announcement = nil)
12
-
13
- remote_command = "ssh -t #{CONFIG['remote_username']}@#{CONFIG['target_server']} '#{command}'"
14
-
15
- puts ''
16
-
17
- print_to_console('', announcement) if announcement.present?
18
-
19
- print_to_console( "/-----<", "Executing: #{remote_command}" )
20
-
21
- Open3.popen2e(remote_command) do |stdin, standard_out_and_standard_err_combined, process_status|
22
-
23
- while line = standard_out_and_standard_err_combined.gets
24
- print_to_console("| ", line)
25
- end
26
-
27
- exit_status = process_status.value
28
-
29
- unless exit_status.success?
30
- abort "\\-----> Error executing #{remote_command}"
31
- end
32
-
33
- print_to_console('\----->', process_status.value.inspect)
34
-
35
- end
36
-
37
- end
38
-
39
- def print_to_console(padding = '', message = '')
40
-
41
- puts sprintf( '%9s %s', padding, message )
42
-
43
- end
44
-
45
- end