pipely-generators 0.0.2 → 0.1.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: d2343aa335b29299ca7eab7e7d8a0c65a2a33628
4
- data.tar.gz: aaa51ac837d732a8febe7f7174224b3f92ef15d6
3
+ metadata.gz: c0ad91652d884eccef3a30a5bbe936c63f21ef1c
4
+ data.tar.gz: e926432d72f65875c3a9cbe29f5dbfb88e11e7eb
5
5
  SHA512:
6
- metadata.gz: c6693a094f759b7df92684bff3a46531672b1a5ee9cbca204909129401ae60ba1332baf65b83b7d81a04f49982ae66e20f2b95d1a834c78dadc843df3353dd4b
7
- data.tar.gz: 371dfb0b045165b5a32f372497fdba725f5d4fbb9448873cea581ad036b6e60de11f51fe584091994686c26a5e719e8a1c3135f0fb74f0917dd45833dfa83371
6
+ metadata.gz: 6c21f3e3801532a5302456c22f73f48ef9079f6761fa371595154f12c639c7a607d6b7c5bd7971edcce356bd157c5f60b8086e27fba6c5784bb9dfec40084efe
7
+ data.tar.gz: 8cab7af3c06c6d32698399a29e55639296ddebe32a226f80910aea256dfa113d9ea2f8777850b3ec199bcf0e79fae1204e261d85cf35675695b8342c2abc5772
data/bin/pipely-generate CHANGED
@@ -22,10 +22,16 @@ class PipelyGenerator < Thor::Group
22
22
  copy_file "Rakefile", "#{name}/Rakefile"
23
23
  end
24
24
 
25
+ def create_gitignore
26
+ copy_file ".gitignore", "#{name}/.gitignore"
27
+ end
28
+
25
29
  def create_template
26
30
  directory "lib", "#{name}/lib"
27
31
  directory "templates", "#{name}/templates"
28
32
  directory "script", "#{name}/script"
33
+ chmod "script/*", 0755
34
+ directory "spec", "#{name}/spec"
29
35
  directory "steps", "#{name}/steps"
30
36
  end
31
37
 
@@ -1,5 +1,5 @@
1
1
  module Pipely
2
2
  module Generators
3
- VERSION = "0.0.2"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -0,0 +1,5 @@
1
+ dist
2
+ definitions
3
+ graphs
4
+ vendor
5
+ .bundle
@@ -0,0 +1,14 @@
1
+ require_relative 'spec_helper'
2
+ require 'template'
3
+ require 'json'
4
+
5
+ require 'pipely/shared_examples'
6
+
7
+ describe Template do
8
+
9
+ CONFIG = File.join(File.dirname(__FILE__), '..', 'config', 'config.yml')
10
+
11
+ it_behaves_like "a renderable template", 'staging', CONFIG
12
+ it_behaves_like "a renderable template", 'production', CONFIG
13
+
14
+ end
@@ -34,6 +34,7 @@
34
34
 
35
35
  {
36
36
  "id": "<%= name.camelize %>EC2Resource",
37
+ "name": "<%= name.camelize %>EC2Resource",
37
38
  "type": "Ec2Resource",
38
39
  "instanceType": "m1.large",
39
40
  "schedule": { "ref": "Nightly" },
@@ -45,6 +46,7 @@
45
46
 
46
47
  {
47
48
  "id": "<%= name.camelize %>EMRCluster",
49
+ "name": <%= name.camelize %>EMRCluster",
48
50
  "type": "EmrCluster",
49
51
  "masterInstanceType": "m1.large",
50
52
  "taskInstanceType": "m1.large",
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipely-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Gillooly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-21 00:00:00.000000000 Z
11
+ date: 2014-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cane
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: thor
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Helpers for generating new Pipely projects
@@ -88,7 +88,7 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
91
+ - ".gitignore"
92
92
  - Gemfile
93
93
  - LICENSE.txt
94
94
  - README.md
@@ -97,11 +97,13 @@ files:
97
97
  - lib/pipely/generators.rb
98
98
  - lib/pipely/generators/version.rb
99
99
  - pipely-generators.gemspec
100
+ - templates/.gitignore
100
101
  - templates/Gemfile
101
102
  - templates/Rakefile
102
103
  - templates/config/config.yml.tt
103
104
  - templates/lib/template.rb
104
105
  - templates/script/build_bootstrap
106
+ - templates/spec/template_spec.rb
105
107
  - templates/steps/bootstrap_ec2.sh
106
108
  - templates/steps/bootstrap_emr.sh
107
109
  - templates/templates/pipeline.json.erb.tt
@@ -115,17 +117,17 @@ require_paths:
115
117
  - lib
116
118
  required_ruby_version: !ruby/object:Gem::Requirement
117
119
  requirements:
118
- - - '>='
120
+ - - ">="
119
121
  - !ruby/object:Gem::Version
120
122
  version: '0'
121
123
  required_rubygems_version: !ruby/object:Gem::Requirement
122
124
  requirements:
123
- - - '>='
125
+ - - ">="
124
126
  - !ruby/object:Gem::Version
125
127
  version: '0'
126
128
  requirements: []
127
129
  rubyforge_project:
128
- rubygems_version: 2.0.14
130
+ rubygems_version: 2.2.0
129
131
  signing_key:
130
132
  specification_version: 4
131
133
  summary: Helpers for generating new Pipely projects