egads 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42ec1036274bdc5a2f82a3e9b7cc104a13b026ed
4
- data.tar.gz: 805811a6fcba6b004c181c7c0f0afbd281633904
3
+ metadata.gz: 61fac32895a105c657404ff207cbe5ebb38338c6
4
+ data.tar.gz: 70b3bf16af029e6a1835f35adbf5b7f9e7badc57
5
5
  SHA512:
6
- metadata.gz: f6c59fa7fae40a6c6ef32422367b5f3deacddafdaace0320f23fad1b6495e5c5f13bb76ee0224b845b1cb574b4e90a600594eb30db0a015f9e5ecf090e662203
7
- data.tar.gz: f5bdec599424d240ecae7aefce605614a7e1dde7fc0b4de35d76a1c3ba8e254d4d63bde4b41e24a2ab2474a1baf4049f477f63268b7dd716f9b3b5672713e1f7
6
+ metadata.gz: 8c957b0697bd21b61a58c1bca96c6729044d769a0ec25a82b803879cadf05b72338a3c523a4fc95f3b5f41ac0053b52d96df657a0bf0e605b8e1dcb6ba156461
7
+ data.tar.gz: f1ee0b9505342fdc96e8995b7df3fefbd9cd82b336d8e4264e010cc8d0fb5d192a6b613dd7bfcafd65bde0d4acb122eda1673ce10f3b9425a6d455777b4fe392
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
data/README.md CHANGED
@@ -1,8 +1,17 @@
1
- # egads: Extensible Git-Archive Deploy Strategy
1
+ # egads!!!
2
+ # *Extensible Git-Archive Deploy Strategy*
2
3
 
3
- ## Installation
4
+ egads is a set of commands for deploying applications without depending on a git
5
+ server.
4
6
 
5
- For local work (building and uploading tarballs), put `egads` in your Gemfile:
7
+ [![Build
8
+ Status](https://travis-ci.org/kickstarter/egads.png)](https://travis-ci.org/kickstarter/egads)
9
+ [![Code
10
+ Climate](https://d3s6mut3hikguw.cloudfront.net/github/kickstarter/egads.png)](https://codeclimate.com/github/kickstarter/egads)
11
+
12
+ ## Install
13
+
14
+ Put `egads` in your Gemfile:
6
15
 
7
16
  # In Gemfile
8
17
  gem 'egads', require: nil
@@ -1,6 +1,11 @@
1
1
  # Capistrano configuration.
2
2
  # Use `load 'egads/capistrano'` instead of `load 'deploy'` in your Capfile
3
+ # Requires "full_sha" to be set
3
4
  Capistrano::Configuration.instance.load do
5
+
6
+ # Allow overriding egads options (e.g. --force)
7
+ set :egads_options, ''
8
+
4
9
  namespace :deploy do
5
10
  desc "Deploy"
6
11
  task :default do
@@ -9,14 +14,21 @@ Capistrano::Configuration.instance.load do
9
14
  deploy.release
10
15
  end
11
16
 
17
+ desc "Deploy and run migrations"
18
+ task :migrations do
19
+ Capistrano::CLI.ui.ask("Are you sure you want to run migrations? Press enter to continue or ctrl+c to abort")
20
+ set :default_environment, {'MIGRATE' => '1'}
21
+ deploy.default
22
+ end
23
+
12
24
  desc "Prepares for release by bundling gems, symlinking shared files, etc"
13
25
  task :stage do
14
- run "egads stage #{sha}"
26
+ run "egads stage #{egads_options } #{full_sha}"
15
27
  end
16
28
 
17
29
  desc "Runs the release script to symlink a staged deploy and restarts services"
18
30
  task :release do
19
- run "egads release #{sha}"
31
+ run "egads release #{egads_options} #{full_sha}"
20
32
  end
21
33
 
22
34
  desc "Checks that a deployable tarball is on S3; creates it if missing"
@@ -22,7 +22,7 @@ module Egads
22
22
  def run_hooks_for(cmd, hook)
23
23
  say_status :hooks, "Running #{cmd} #{hook} hooks"
24
24
  Config.hooks_for(cmd, hook).each do |command|
25
- run_with_code command
25
+ say run_with_code(command, capture: true)
26
26
  end
27
27
  end
28
28
 
@@ -1,3 +1,3 @@
1
1
  module Egads
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Suggs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-26 00:00:00.000000000 Z
11
+ date: 2013-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
@@ -79,6 +79,7 @@ extra_rdoc_files:
79
79
  - README.md
80
80
  files:
81
81
  - .gitignore
82
+ - .travis.yml
82
83
  - Gemfile
83
84
  - Guardfile
84
85
  - README.md