neo-dci 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/lib/neo/dci.rb +2 -0
- data/lib/neo/dci/task_loader.rb +10 -0
- data/lib/neo/dci/version.rb +1 -1
- data/lib/tasks/neo-dci_tasks.rake +25 -0
- data/lib/tasks/share/app/contexts/context.rb +3 -0
- data/lib/tasks/share/app/roles/role.rb +4 -0
- metadata +6 -2
data/README.md
CHANGED
data/lib/neo/dci.rb
CHANGED
data/lib/neo/dci/version.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
namespace :"neo-dci" do
|
2
|
+
desc "standard tasks for a new application"
|
3
|
+
task :setup => [:"build:context", :"build:role"] do
|
4
|
+
# nothing for its own
|
5
|
+
end
|
6
|
+
|
7
|
+
namespace :build do
|
8
|
+
def copy_from_share(path)
|
9
|
+
templates = File.expand_path("../share/", __FILE__)
|
10
|
+
rails = Rails.root.to_s
|
11
|
+
sh "mkdir -p #{rails}/#{File.dirname path}"
|
12
|
+
cp "#{templates}/#{path}", "#{rails}/#{path}"
|
13
|
+
end
|
14
|
+
|
15
|
+
desc "build application base role"
|
16
|
+
task :role do
|
17
|
+
copy_from_share "app/roles/role.rb"
|
18
|
+
end
|
19
|
+
|
20
|
+
desc "build application base context"
|
21
|
+
task :context do
|
22
|
+
copy_from_share "app/contexts/context.rb"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo-dci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-11-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
@@ -83,7 +83,11 @@ files:
|
|
83
83
|
- lib/neo/dci/context_result.rb
|
84
84
|
- lib/neo/dci/data.rb
|
85
85
|
- lib/neo/dci/role.rb
|
86
|
+
- lib/neo/dci/task_loader.rb
|
86
87
|
- lib/neo/dci/version.rb
|
88
|
+
- lib/tasks/neo-dci_tasks.rake
|
89
|
+
- lib/tasks/share/app/contexts/context.rb
|
90
|
+
- lib/tasks/share/app/roles/role.rb
|
87
91
|
- neo-dci.gemspec
|
88
92
|
- test/context_result_test.rb
|
89
93
|
- test/context_test.rb
|