farmstead 0.0.21 → 0.0.22

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: c2038974af70d4e6e38e138d0a0287ac6d8a5442
4
- data.tar.gz: 65f4f52dc2e256ea0f533b63af9b460cf8da19fa
3
+ metadata.gz: 820e551633105c8ce189e0f88a97a11b11707070
4
+ data.tar.gz: 0c86423857ef95e31ebc8d03560c6e0332ba212c
5
5
  SHA512:
6
- metadata.gz: 7590d7dbee86a50ce9467794a6ab0bda0c39573ee977e4663070289bc4b90e424c963a705817cb2506c01fb264d16ce293c271f3a4a8d5bf632b7f5d1dfc2333
7
- data.tar.gz: 48b38aa48c0495c05453f9ec5d0bb4e8f941096cc3400cb78d405837152939cc72c1aad25ebb1b38f7f0b9f276469eb6f779e988d461d7f60575f0068924ab9a
6
+ metadata.gz: 4c293aa56ffb01f164fe34bd2e99685fa72182fa35e998be8aa72ca5810584eb5de72625d0cdb90a09ddb1a3044bee00111a956496095b4f925662d71f0e0da0
7
+ data.tar.gz: 86294f77cda4937cb404cebd593c6d33720b734596cdee20b3e3e1d652abf98cbd52f3363d75ed2d2a59fc02ff0acdb61282cc57925eeed88cf42e05af734ee2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- farmstead (0.0.21)
4
+ farmstead (0.0.22)
5
5
  httparty (~> 0.15.6)
6
6
  mechanize (~> 2.7)
7
7
  mysql2 (~> 0.4.10)
@@ -1,4 +1,4 @@
1
- # Manager
1
+ # Manage
2
2
  #
3
3
  # It works off of the DB when
4
4
  # 1) A new site is added
@@ -26,7 +26,7 @@
26
26
  # HINT: See .env
27
27
  # Every micro-service inherits the Service class
28
28
  module Farmstead
29
- module Manager
29
+ module Manage
30
30
  class Producer < Farmstead::Service
31
31
  def run
32
32
  loop do
@@ -41,6 +41,8 @@ services:
41
41
  build: .
42
42
  environment:
43
43
  SERVICE: Extracter
44
+ ports:
45
+ - '3001:3000'
44
46
  env_file:
45
47
  - '.env'
46
48
 
@@ -50,6 +52,8 @@ services:
50
52
  build: .
51
53
  environment:
52
54
  SERVICE: Transformer
55
+ ports:
56
+ - '3002:3000'
53
57
  env_file:
54
58
  - '.env'
55
59
 
@@ -59,5 +63,7 @@ services:
59
63
  build: .
60
64
  environment:
61
65
  SERVICE: Loader
66
+ ports:
67
+ - '3003:3000'
62
68
  env_file:
63
69
  - '.env'
@@ -3,7 +3,7 @@ module <%= @name.capitalize %>
3
3
  include Farmstead::Extract
4
4
  class API < Sinatra::Base
5
5
  register Sinatra::DefaultRoutes
6
- set :port, 22340
6
+ set :port, 3000
7
7
  end
8
8
  end
9
9
  end
@@ -1,8 +1,9 @@
1
1
  module <%= @name.capitalize %>
2
- class Loader
2
+ module Loader
3
3
  include Farmstead::Load
4
- def hello
5
- p "hello"
4
+ class API < Sinatra::Base
5
+ register Sinatra::DefaultRoutes
6
+ set :port, 3000
6
7
  end
7
8
  end
8
9
  end
@@ -0,0 +1,10 @@
1
+ module <%= @name.capitalize %>
2
+ module Manager
3
+ include Farmstead::Manage
4
+ class API < Sinatra::Base
5
+ register Sinatra::DefaultRoutes
6
+ set :port, 3000
7
+ end
8
+ end
9
+ end
10
+
@@ -24,7 +24,7 @@ klass = Object.const_get "<%= @name.capitalize %>::#{dynamic_module}::#{dynamic_
24
24
 
25
25
  # Sinatra Wrapper uses Class method
26
26
  if dynamic_class == "API"
27
- service.run!
27
+ klass.run!
28
28
  else
29
29
  service = klass.new
30
30
  service.send("run")
@@ -1,8 +1,9 @@
1
1
  module <%= @name.capitalize %>
2
- class Transformer
2
+ module Transformer
3
3
  include Farmstead::Transform
4
- def hello
5
- p "hello"
4
+ class API < Sinatra::Base
5
+ register Sinatra::DefaultRoutes
6
+ set :port, 3000
6
7
  end
7
8
  end
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module Farmstead
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: farmstead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Jenney
@@ -222,7 +222,7 @@ files:
222
222
  - lib/farmstead/cli/test.rb
223
223
  - lib/farmstead/pipeline/extract.rb
224
224
  - lib/farmstead/pipeline/load.rb
225
- - lib/farmstead/pipeline/manager.rb
225
+ - lib/farmstead/pipeline/manage.rb
226
226
  - lib/farmstead/pipeline/transform.rb
227
227
  - lib/farmstead/project.rb
228
228
  - lib/farmstead/scaffold/.dockerignore.erb
@@ -232,6 +232,7 @@ files:
232
232
  - lib/farmstead/scaffold/exec.sh.erb
233
233
  - lib/farmstead/scaffold/extract/extracter.rb.erb
234
234
  - lib/farmstead/scaffold/load/loader.rb.erb
235
+ - lib/farmstead/scaffold/manage/manager.rb.erb
235
236
  - lib/farmstead/scaffold/project.rb.erb
236
237
  - lib/farmstead/scaffold/project.yml.erb
237
238
  - lib/farmstead/scaffold/supervisord.conf.erb