deployments 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Guardfile +4 -4
- data/README.md +3 -2
- data/Rakefile +5 -0
- data/lib/deployments/gem_tasks.rb +30 -0
- data/lib/deployments/version.rb +1 -1
- data/lib/tasks/deployments.rake +1 -22
- metadata +3 -2
data/Guardfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
guard 'rspec', :cli => '--format documentation', :version => 2, :all_after_pass => false, :
|
1
|
+
guard 'rspec', :cli => '--format documentation', :version => 2, :all_after_pass => false, :keep_failed => false do
|
2
2
|
watch(%r{^spec/.+_spec\.rb$})
|
3
3
|
watch(%r{^spec/.+\.rb$})
|
4
|
-
watch(%r{^lib/(.+)\.rb$})
|
5
|
-
watch(%r{^lib/
|
6
|
-
watch('spec/spec_helper.rb')
|
4
|
+
watch(%r{^lib/(.+)\.rb$}) { "spec" }
|
5
|
+
watch(%r{^lib/deployments/(.+)\.rb$}) { "spec" }
|
6
|
+
watch('spec/spec_helper.rb') { "spec" }
|
7
7
|
end
|
data/README.md
CHANGED
@@ -18,10 +18,11 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
If you are using Rails 2
|
21
|
+
If you are using Rails 2 or non Rails gem you should add the next following
|
22
|
+
code into Rakefile:
|
22
23
|
|
23
24
|
```ruby
|
24
|
-
|
25
|
+
require 'deployments/gem_tasks'
|
25
26
|
```
|
26
27
|
|
27
28
|
At first you need to create in the config folder deployments.yml file with
|
data/Rakefile
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'rake'
|
2
|
+
|
3
|
+
module Deployments
|
4
|
+
class GemTasks
|
5
|
+
include Rake::DSL if defined?(Rake::DSL)
|
6
|
+
|
7
|
+
def self.install_tasks
|
8
|
+
namespace :deployments do
|
9
|
+
desc "Push deployments details to the server"
|
10
|
+
task :push do
|
11
|
+
require 'deployments'
|
12
|
+
|
13
|
+
include Deployments
|
14
|
+
|
15
|
+
project = Project.new('./')
|
16
|
+
build = Build.new(ENV['app_env'], project)
|
17
|
+
|
18
|
+
dispatcher = Dispatcher.new(build)
|
19
|
+
dispatcher.run
|
20
|
+
|
21
|
+
public_version = PublicVersion.new(project)
|
22
|
+
public_version.generate
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
Deployments::GemTasks.install_tasks
|
30
|
+
|
data/lib/deployments/version.rb
CHANGED
data/lib/tasks/deployments.rake
CHANGED
@@ -1,22 +1 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
include Rake::DSL if defined?(Rake::DSL)
|
4
|
-
|
5
|
-
namespace :deployments do
|
6
|
-
desc "Push deployments details to the server"
|
7
|
-
task :push do
|
8
|
-
require 'deployments'
|
9
|
-
|
10
|
-
include Deployments
|
11
|
-
|
12
|
-
project = Project.new('./')
|
13
|
-
build = Build.new(ENV['app_env'], project)
|
14
|
-
|
15
|
-
dispatcher = Dispatcher.new(build)
|
16
|
-
dispatcher.run
|
17
|
-
|
18
|
-
public_version = PublicVersion.new(project)
|
19
|
-
public_version.generate
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
1
|
+
require 'deployments/gem_tasks'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deployments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: curb
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- lib/deployments.rb
|
113
113
|
- lib/deployments/build.rb
|
114
114
|
- lib/deployments/dispatcher.rb
|
115
|
+
- lib/deployments/gem_tasks.rb
|
115
116
|
- lib/deployments/project.rb
|
116
117
|
- lib/deployments/public_version.rb
|
117
118
|
- lib/deployments/railtie.rb
|