challenger 0.0.3 → 0.0.4

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.
data/README.md CHANGED
@@ -1,24 +1,16 @@
1
1
  # Challenger
2
2
 
3
- TODO: Write a gem description
3
+ ## WARNING
4
4
 
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'challenger'
10
-
11
- And then execute:
5
+ Although I run this on my production servers, please try it out on a test site before deploying a live site on it.
12
6
 
13
- $ bundle
14
-
15
- Or install it yourself as:
7
+ ## Installation
16
8
 
17
- $ gem install challenger
9
+ `capify .` your Rails application.
18
10
 
19
- ## Usage
11
+ Add `require 'challenger'` at the top of the Capfile
20
12
 
21
- TODO: Write usage instructions here
13
+ You should now be able to access challenger tasks like `deploy:root`. Confirm by running `cap -T`.
22
14
 
23
15
  ## Contributing
24
16
 
@@ -27,3 +19,8 @@ TODO: Write usage instructions here
27
19
  3. Commit your changes (`git commit -am 'Added some feature'`)
28
20
  4. Push to the branch (`git push origin my-new-feature`)
29
21
  5. Create new Pull Request
22
+
23
+ ## License
24
+
25
+ Licensed under the MIT License.
26
+ (c) 2012, Utkarsh Kukreti.
@@ -24,8 +24,10 @@ namespace :deploy do
24
24
  task :root do
25
25
  set :user, "root"
26
26
  run "useradd deployer --home /var/apps --create-home --shell /bin/bash"
27
- run 'if [[ $(cat /etc/sudoers) != *deployer* ]]; then sed -i "/root.*ALL=(ALL) ALL/ a\\\\deployer ALL\\=\\(ALL\\) NOPASSWD\\: ALL" /etc/sudoers; fi'
27
+ run 'if [[ $(cat /etc/sudoers) != *deployer* ]]; then ' +
28
+ 'perl -i -p -e "s/(root.*?ALL.*?$)/\\1\\ndeployer\\tALL=(ALL) NOPASSWD: ALL\\n/" /etc/sudoers; fi'
28
29
  run "mkdir -p /var/apps/.ssh"
30
+ run "chown -R deployer:deployer /var/apps/.ssh"
29
31
  public_key = File.read(ENV["PUBLIC_KEY"] || File.expand_path("~/.ssh/id_rsa.pub"))
30
32
  put public_key, "/tmp/public_key"
31
33
  run "cat /tmp/public_key >> /var/apps/.ssh/authorized_keys"
@@ -1,7 +1,7 @@
1
1
  namespace :nodejs do
2
2
  desc "Install the latest relase of Node.js"
3
3
  task :install, roles: :app do
4
- run "#{sudo} add-apt-repository ppa:chris-lea/node.js"
4
+ run "#{sudo} add-apt-repository -y ppa:chris-lea/node.js"
5
5
  run "#{sudo} apt-get -y update"
6
6
  run "#{sudo} apt-get -y install nodejs"
7
7
  end
@@ -6,7 +6,7 @@ set_default(:postgresql_database) { "#{application}_production" }
6
6
  namespace :postgresql do
7
7
  desc "Install the latest stable release of PostgreSQL."
8
8
  task :install, roles: :db, only: {primary: true} do
9
- run "#{sudo} add-apt-repository ppa:pitti/postgresql"
9
+ run "#{sudo} add-apt-repository -y ppa:pitti/postgresql"
10
10
  run "#{sudo} apt-get -y update"
11
11
  run "#{sudo} apt-get -y install postgresql libpq-dev"
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Challenger
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: challenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-09 00:00:00.000000000 Z
12
+ date: 2012-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70310708337640 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70310708337640
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  description: Capistrano recipes to launch your server.
26
31
  email:
27
32
  - utkarshkukreti@gmail.com
@@ -67,9 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
72
  version: '0'
68
73
  requirements: []
69
74
  rubyforge_project:
70
- rubygems_version: 1.8.15
75
+ rubygems_version: 1.8.24
71
76
  signing_key:
72
77
  specification_version: 3
73
78
  summary: Capistrano recipes to launch your server.
74
79
  test_files: []
75
- has_rdoc: