smart_proxy_dynflow 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of smart_proxy_dynflow might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZjE5MGRkNTE0ZGEwZmUyMmE2NzhkMDIwZDJjNWUwMzEwNDFmZThiZA==
5
- data.tar.gz: !binary |-
6
- ZTY3YmM5ZWY5YzhiZGMwNDRiN2I2YjI5ZDI2MzMwMzJhYzVmMGQyZA==
2
+ SHA1:
3
+ metadata.gz: 578ba314b0d67d02439a6c13eea65295e3a27b64
4
+ data.tar.gz: 2dbe705400e06fc478500f2c4c7ea0cb0302c31f
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZmM3ZWQyNzZkM2M0ZGYwMmJkMTEyNzdjMDAyYWQ2MjNkYjJmZDVmYjlkMGE3
10
- YmU5YTg2Yjc5NzZkMzhmNDVkMDBhNTE1OWU3ZTFmMjljNTFiZTJmY2E5NWM4
11
- NDk0MWZkMTE0MDFkZTJlNGVkZDFiY2Q0MmFhMjQ4ZjcxZjUzM2M=
12
- data.tar.gz: !binary |-
13
- MTVjNDkxNDUwMDY1Njk4MmUxMTdkZWYzNzA4YmYxNWRmNTczM2MzNjliOWE3
14
- MjJlZGQ0ZWJjNzBjYmEwZGJlNmE5NTZjNjVjMmUwYzVmZmZhNDJkMTY2YjU0
15
- ZmM5YTcyYjgwMmFhYWIyYzNjNTFkODhlMGY2NTQ5ZmJhMDQ3NmE=
6
+ metadata.gz: 5b31a423d35a1c388d93b8a9f0d9e568ecbc60c68c3d3411203f20cf30adaa88497fac209d0180808d5e080f7b6cd1809422b7f1477654ad37fec3d7b45b4470
7
+ data.tar.gz: bb31dff6dba0ff22c5cd2fc8ea96652e3d81d0f578c397b60f17b81ca0091e5b15c636e4f8be6205f62f901bfa1d63aa90cdff005b5f41d7c62d072ef3f691d5
@@ -4,8 +4,7 @@ class Proxy::Dynflow
4
4
  https_rackup_path File.expand_path("http_config.ru", File.expand_path("../", __FILE__))
5
5
 
6
6
  settings_file "dynflow.yml"
7
- default_settings(:dynflow_identity_key => '~/.vagrant.d/insecure_private_key',
8
- :dynflow_user => 'root')
7
+ default_settings :database => '/var/spool/foreman-proxy/dynflow/dynflow.sqlite'
9
8
  plugin :dynflow, Proxy::Dynflow::VERSION
10
9
  end
11
10
  end
@@ -1,5 +1,5 @@
1
1
  module Proxy
2
2
  class Dynflow
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
@@ -18,7 +18,16 @@ class Proxy::Dynflow
18
18
  end
19
19
 
20
20
  def persistence_conn_string
21
- ENV['DYNFLOW_DB_CONN_STRING'] || 'sqlite:/'
21
+ db_conn_string = 'sqlite:/'
22
+
23
+ db_file = Proxy::Dynflow::Plugin.settings.database
24
+ if db_file.nil? || db_file.empty?
25
+ Proxy::Log.logger.warn "Could not open DB for dynflow at '#{db_file}', will keep data in memory. Restart will drop all dynflow data."
26
+ else
27
+ db_conn_string += "/#{db_file}"
28
+ end
29
+
30
+ ENV['DYNFLOW_DB_CONN_STRING'] || db_conn_string
22
31
  end
23
32
 
24
33
  def persistence_adapter
@@ -1,2 +1,3 @@
1
1
  ---
2
2
  :enabled: true
3
+ :database: /var/spool/foreman-proxy/dynflow/dynflow.sqlite
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_dynflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2016-01-21 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.7'
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.7'
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: '10.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: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
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: mocha
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1'
62
62
  type: :development
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: '1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1'
76
76
  type: :development
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: '1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rack-test
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
@@ -112,47 +112,46 @@ dependencies:
112
112
  name: dynflow
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.8.4
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.8.4
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: sequel
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ! '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: sqlite3
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ! '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ! '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
- description: ! ' Use the Dynflow inside Foreman smart proxy
154
-
155
- '
153
+ description: |2
154
+ Use the Dynflow inside Foreman smart proxy
156
155
  email:
157
156
  - inecas@redhat.com
158
157
  executables: []
@@ -181,12 +180,12 @@ require_paths:
181
180
  - lib
182
181
  required_ruby_version: !ruby/object:Gem::Requirement
183
182
  requirements:
184
- - - ! '>='
183
+ - - ">="
185
184
  - !ruby/object:Gem::Version
186
185
  version: '0'
187
186
  required_rubygems_version: !ruby/object:Gem::Requirement
188
187
  requirements:
189
- - - ! '>='
188
+ - - ">="
190
189
  - !ruby/object:Gem::Version
191
190
  version: '0'
192
191
  requirements: []
@@ -196,4 +195,3 @@ signing_key:
196
195
  specification_version: 4
197
196
  summary: Dynflow runtime for Foreman smart proxy
198
197
  test_files: []
199
- has_rdoc: