ftrio 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/ftrio.gemspec +1 -1
- data/lib/ftrio/ftrio.rake +8 -12
- data/lib/ftrio/version.rb +1 -1
- data/lib/ftrio.rb +2 -1
- metadata +5 -5
data/CHANGELOG.md
CHANGED
data/ftrio.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.
|
21
|
+
s.add_runtime_dependency "rake"
|
22
22
|
s.add_runtime_dependency "heroku"
|
23
23
|
s.add_runtime_dependency "taps"
|
24
24
|
end
|
data/lib/ftrio/ftrio.rake
CHANGED
@@ -1,11 +1,7 @@
|
|
1
1
|
module Ftrio
|
2
2
|
|
3
3
|
namespace :ftrio do
|
4
|
-
|
5
|
-
puts app_name
|
6
|
-
end
|
7
|
-
|
8
|
-
desc "Creates feature_branch, dev_branch and feature_app"
|
4
|
+
desc "Creates feature_branch and feature_app"
|
9
5
|
task :create, :feature do |cmd, args|
|
10
6
|
feature_branch = args[:feature]
|
11
7
|
feature_app = feature_app(feature_branch)
|
@@ -17,28 +13,28 @@ module Ftrio
|
|
17
13
|
sh "heroku db:push --app #{feature_app} --confirm #{feature_app}"
|
18
14
|
sh "git checkout #{feature_branch}"
|
19
15
|
puts "\n\n"
|
20
|
-
puts "
|
21
|
-
puts "
|
22
|
-
puts "
|
23
|
-
puts "
|
16
|
+
puts " #"
|
17
|
+
puts " # Your feature development app is ready:"
|
18
|
+
puts " # #{feature_app}.heroku.com"
|
19
|
+
puts " #"
|
24
20
|
puts "\n\n"
|
25
21
|
end
|
26
22
|
|
27
|
-
desc "
|
23
|
+
desc "Pushes feature_branch into feature_app"
|
28
24
|
task :push do
|
29
25
|
feature_branch = current_branch
|
30
26
|
feature_app = feature_app(current_branch)
|
31
27
|
sh "git push #{feature_app} #{feature_branch}:master"
|
32
|
-
sh "git remote rm #{feature_app} "
|
33
28
|
end
|
34
29
|
|
35
|
-
desc "Destroys feature_branch
|
30
|
+
desc "Destroys feature_branch and feature_app"
|
36
31
|
task :destroy do
|
37
32
|
feature_branch = current_branch
|
38
33
|
feature_app = feature_app(current_branch)
|
39
34
|
sh "git checkout master"
|
40
35
|
sh "git branch -D #{feature_branch}"
|
41
36
|
sh "heroku apps:destroy --app #{feature_app} --confirm #{feature_app}"
|
37
|
+
sh "git remote rm #{feature_app} "
|
42
38
|
end
|
43
39
|
end
|
44
40
|
|
data/lib/ftrio/version.rb
CHANGED
data/lib/ftrio.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require "rake"
|
1
2
|
require "ftrio/version"
|
2
3
|
require "ftrio/railtie" if defined? Rails
|
3
4
|
|
@@ -13,7 +14,7 @@ module Ftrio
|
|
13
14
|
end
|
14
15
|
|
15
16
|
def self.feature_app(feature_branch)
|
16
|
-
"
|
17
|
+
"#{app_name}--#{feature_branch}"
|
17
18
|
end
|
18
19
|
|
19
20
|
def self.compile_assets
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ftrio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Oguz Bilgic
|
@@ -18,7 +18,7 @@ cert_chain: []
|
|
18
18
|
date: 2011-12-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: rake
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
segments:
|
30
30
|
- 0
|
31
31
|
version: "0"
|
32
|
-
type: :
|
32
|
+
type: :runtime
|
33
33
|
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: heroku
|