bard 0.11.3 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bard.gemspec +2 -2
- data/lib/bard.rb +12 -1
- data/lib/bard/capistrano.rb +2 -3
- metadata +5 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.12.0
|
data/bard.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{bard}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.12.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Micah Geisel", "Nick Hogle"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-23}
|
13
13
|
s.default_executable = %q{bard}
|
14
14
|
s.description = %q{This immaculate work of engineering genius allows mere mortals to collaborate with beings of transcendent intelligence like Micah, Michael, and Nick.}
|
15
15
|
s.email = %q{info@botandrose.com}
|
data/lib/bard.rb
CHANGED
@@ -65,7 +65,16 @@ class Bard < Thor
|
|
65
65
|
raise NonFastForwardError unless fast_forward_merge?("origin/#{current_branch}")
|
66
66
|
|
67
67
|
run_crucial "git push origin #{current_branch}", true
|
68
|
-
|
68
|
+
end
|
69
|
+
|
70
|
+
method_options %w( verbose -v ) => :boolean
|
71
|
+
desc "stage", "pushes current branch, and stages it"
|
72
|
+
def stage
|
73
|
+
invoke :push
|
74
|
+
|
75
|
+
run_crucial "cap stage BRANCH=#{current_branch}", options.verbose?
|
76
|
+
|
77
|
+
puts green("Stage Succeeded")
|
69
78
|
end
|
70
79
|
|
71
80
|
method_options %w( verbose -v ) => :boolean
|
@@ -98,6 +107,8 @@ class Bard < Thor
|
|
98
107
|
end
|
99
108
|
|
100
109
|
run_crucial "cap deploy", options.verbose?
|
110
|
+
|
111
|
+
puts green("Deploy Succeeded")
|
101
112
|
end
|
102
113
|
|
103
114
|
private
|
data/lib/bard/capistrano.rb
CHANGED
@@ -37,12 +37,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
37
37
|
task :deploy, :roles => :production do
|
38
38
|
system "git push github" if `git remote` =~ /\bgithub\b/
|
39
39
|
run "cd #{application} && git pull origin master && rake bootstrap:production"
|
40
|
-
puts "Deploy Succeeded"
|
41
40
|
end
|
42
41
|
|
43
42
|
desc "push app to staging"
|
44
43
|
task :stage, :roles => :staging do
|
45
|
-
|
46
|
-
|
44
|
+
branch = ENV.has_key?("BRANCH") ? ENV["BRANCH"] : "integration"
|
45
|
+
run "cd #{application} && git fetch && git checkout -f origin/#{branch} && rake bootstrap"
|
47
46
|
end
|
48
47
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 12
|
9
|
+
- 0
|
10
|
+
version: 0.12.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Micah Geisel
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-12-
|
19
|
+
date: 2010-12-23 00:00:00 -08:00
|
20
20
|
default_executable: bard
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|