thin-ice 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/thin-ice.rb +1 -1
- data/lib/thin-ice/core.rb +12 -7
- data/lib/thin-ice/version.rb +1 -1
- metadata +7 -36
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWNjYTM2YjJiMDU5MDc2ZGExMjQ1YjlmYmRiM2RmYzEzZDhjOWVjYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDE4YzJlZTA1Y2UyZTRhMTg3NGFlZGNiYzg5N2M3NTliMjdkZjg4NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzdmNmFkMTMwYmM3NmRjNmYzMTExZDEwODBiNTRhY2VlM2ExZGM4NmNjMTc0
|
10
|
+
MzFiZTM4ZmJhZjMzODhlOTYxZmY4NjM1YjA2OGQ2ODZmMzU5N2E3ZDUxYzQ0
|
11
|
+
YTEzODc4Y2QyYmZiOGRjYThkNDIxYmU3YTgzZDQxNjAzNDU5NTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjUwODE5ZTcxYzk0OGExODY4Y2EzOGUyM2E0YzE4MjUxODBmZWJjYzY2YjJh
|
14
|
+
ZjhiNTRlNGJlZTZjNjc2ZjkyOThhN2ZlZDE4OThlNzQyNTk1OTc4Mzc1YTVh
|
15
|
+
ZTFhZWZhNTg4NjYyZTRmMGE4M2UzNjZhNDA1OWQ1MGEwNDBlZmY=
|
data/lib/thin-ice.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require 'thin-ice/core'
|
1
|
+
require 'thin-ice/core'
|
data/lib/thin-ice/core.rb
CHANGED
@@ -54,31 +54,31 @@ module ThinIce
|
|
54
54
|
# @return [Array] An Array cotaining the Thin executable location. Uses
|
55
55
|
# local Thin gem by default
|
56
56
|
def thin_exec_param
|
57
|
-
[thin_path ||
|
57
|
+
[thin_path || 'thin']
|
58
58
|
end
|
59
59
|
|
60
60
|
# @return [Array] An Array cotaining the path to a YML configuration file.
|
61
61
|
# Empty by default
|
62
62
|
def config_path_param
|
63
|
-
(config_path) ? [
|
63
|
+
(config_path) ? ['-C', config_path] : []
|
64
64
|
end
|
65
65
|
|
66
66
|
# @return [Array] An Array cotaining the path to a Rackup configuration file.
|
67
67
|
# Empty by default
|
68
68
|
def rackup_path_param
|
69
|
-
(rackup_path) ? [
|
69
|
+
(rackup_path) ? ['-R', rackup_path] : []
|
70
70
|
end
|
71
71
|
|
72
72
|
# @return [String] A concatination of strings resulting in the Thin
|
73
73
|
# start command to be invoked by Rake
|
74
74
|
def start_cmd
|
75
|
-
env_param + thin_exec_param + rackup_path_param + config_path_param + [
|
75
|
+
env_param + thin_exec_param + rackup_path_param + config_path_param + ['start']
|
76
76
|
end
|
77
77
|
|
78
78
|
# @return [String] A concatination of strings resulting in the Thin
|
79
79
|
# stop command to be invoked by Rake
|
80
80
|
def stop_cmd
|
81
|
-
env_param + thin_exec_param + rackup_path_param + config_path_param + [
|
81
|
+
env_param + thin_exec_param + rackup_path_param + config_path_param + ['stop']
|
82
82
|
end
|
83
83
|
|
84
84
|
end
|
@@ -91,15 +91,20 @@ module ThinIce
|
|
91
91
|
|
92
92
|
thin_manager = ThinManager.new(options)
|
93
93
|
|
94
|
-
desc
|
94
|
+
desc 'Start the Thin server'
|
95
95
|
task :start do
|
96
96
|
invoke thin_manager.start_cmd
|
97
97
|
end
|
98
98
|
|
99
|
-
desc
|
99
|
+
desc 'Stop the Thin server'
|
100
100
|
task :stop do
|
101
101
|
invoke thin_manager.stop_cmd
|
102
102
|
end
|
103
103
|
|
104
|
+
desc 'Restart the Thin server'
|
105
|
+
task :restart do
|
106
|
+
invoke thin_manager.stop_cmd
|
107
|
+
invoke thin_manager.start_cmd
|
108
|
+
end
|
104
109
|
end
|
105
110
|
end
|
data/lib/thin-ice/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thin-ice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Bezobchuk
|
@@ -14,16 +14,16 @@ dependencies:
|
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '10.4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '10.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: thin
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,34 +52,6 @@ dependencies:
|
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.5.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: yard
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.8'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0.8'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: redcarpet
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ~>
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.1'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ~>
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3.1'
|
83
55
|
description: Rake task generator for spinning up a thin server with easy to use configuration
|
84
56
|
options.
|
85
57
|
email: abezobchuk@gmail.com
|
@@ -87,9 +59,9 @@ executables: []
|
|
87
59
|
extensions: []
|
88
60
|
extra_rdoc_files: []
|
89
61
|
files:
|
62
|
+
- lib/thin-ice.rb
|
90
63
|
- lib/thin-ice/core.rb
|
91
64
|
- lib/thin-ice/version.rb
|
92
|
-
- lib/thin-ice.rb
|
93
65
|
homepage: https://github.com/Alexanderbez/thin-ice
|
94
66
|
licenses:
|
95
67
|
- MIT
|
@@ -110,9 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
82
|
version: '0'
|
111
83
|
requirements: []
|
112
84
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.4.2
|
114
86
|
signing_key:
|
115
87
|
specification_version: 4
|
116
88
|
summary: Rake task generator for spinning up a thin server.
|
117
89
|
test_files: []
|
118
|
-
has_rdoc:
|