iisconfig 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +9 -9
- data/VERSION +1 -1
- data/lib/iisconfig/app_pool.rb +2 -2
- data/lib/iisconfig/configuration.rb +0 -0
- data/lib/iisconfig/ftp_site.rb +0 -0
- data/lib/iisconfig/process_model.rb +65 -5
- data/lib/iisconfig/runner.rb +0 -0
- data/lib/iisconfig.rb +0 -0
- data/test/example.rb +1 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjgwNGQ2Yjk3Zjk0M2JjMWQyNmNlYzc3ZWE2YTkyMmNjM2QyODE3OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
7
|
-
|
6
|
+
ZTM3YTUxNjk2MWZiMjJiMWUyY2YzODg0MjU1NDJmNWQxZmZmNjRlZg==
|
7
|
+
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2NkZmQxY2YyNDZiMzg0OGE3NmQwNDUwNzI0ODNlNDYwZDE5ZWU3NjgzZjY3
|
10
|
+
YWFiZmVjNGEyN2Q5YmJkYTkzOTJjZGI0MGNjODdhOTJlNGEyN2FlYzQ3OTUw
|
11
|
+
OTcyODU4ZjBkZjAwZTU3ZmJlZmVlNTJkNTFjYTgxZjEwM2JlMjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWMwYzc4OTY2NzE5NzdkZmVkOGZjNTI1NGZlMTYyNmRlMWRlNTk1Yzk5ZDFj
|
14
|
+
ZDE1MTExODI0ZDBkNGZhZmZiOWUyZjlmODg5MzUxZDNkNzZjMTAyMWE5Mzgw
|
15
|
+
Y2JlODczZGY0ZDEzMjBjMTM3ZDhiNWEzYTlkY2U0MDA1ZDYxN2M=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/iisconfig/app_pool.rb
CHANGED
@@ -88,8 +88,8 @@ module IISConfig
|
|
88
88
|
|
89
89
|
commands << delete if exist? :apppool, @name
|
90
90
|
commands << add
|
91
|
-
@process_model.settings.
|
92
|
-
commands << %W{SET CONFIG /section:applicationPools /[name='#{@name}'].processModel.#{
|
91
|
+
@process_model.settings.each_pair do |key, value|
|
92
|
+
commands << %W{SET CONFIG /section:applicationPools /[name='#{@name}'].processModel.#{key}:#{value}}
|
93
93
|
end
|
94
94
|
commands << %W{SET APPPOOL /apppool.name:#{@name} /enable32BitAppOnWin64:#{@enable_32bit_app_on_win64}}
|
95
95
|
|
File without changes
|
data/lib/iisconfig/ftp_site.rb
CHANGED
File without changes
|
@@ -1,16 +1,76 @@
|
|
1
1
|
module IISConfig
|
2
2
|
|
3
|
+
# Configuration of the Process Model Settings for an Application Pool
|
4
|
+
# Reference: http://www.iis.net/configreference/system.applicationhost/applicationpools/add/processmodel
|
5
|
+
#
|
3
6
|
class ProcessModel
|
4
7
|
|
8
|
+
def initialize
|
9
|
+
@settings = {}
|
10
|
+
end
|
11
|
+
|
5
12
|
def identity_type(type = nil)
|
6
|
-
|
7
|
-
|
13
|
+
setting(:identityType, type)
|
14
|
+
end
|
15
|
+
|
16
|
+
# Specifies how long a worker process should run idle.
|
17
|
+
def idle_timeout(timeout = nil)
|
18
|
+
setting(:idleTimeout, timeout)
|
19
|
+
end
|
20
|
+
|
21
|
+
def load_user_profile(value = nil)
|
22
|
+
setting(:loadUserProfile, value)
|
23
|
+
end
|
24
|
+
|
25
|
+
def logon_type(value = nil)
|
26
|
+
setting(:logonType, value)
|
27
|
+
end
|
28
|
+
|
29
|
+
def manual_group_membership(value = nil)
|
30
|
+
setting(:manualGroupMembership, value)
|
31
|
+
end
|
32
|
+
|
33
|
+
def max_processes(value = nil)
|
34
|
+
setting(:maxProcesses, value)
|
35
|
+
end
|
36
|
+
|
37
|
+
def password(value = nil)
|
38
|
+
setting(:password, value)
|
39
|
+
end
|
40
|
+
|
41
|
+
def pinging_enabled(value = nil)
|
42
|
+
setting(:pingingEnabled, value)
|
43
|
+
end
|
44
|
+
|
45
|
+
def ping_interval(value = nil)
|
46
|
+
setting(:pingInterval, value)
|
47
|
+
end
|
48
|
+
|
49
|
+
def ping_response_time(value = nil)
|
50
|
+
setting(:pingResponseTime, value)
|
51
|
+
end
|
52
|
+
|
53
|
+
def shutdown_time_limit(value = nil)
|
54
|
+
setting(:shutdownTimeLimit, value)
|
55
|
+
end
|
56
|
+
|
57
|
+
def startup_time_limit(value = nil)
|
58
|
+
setting(:startupTimeLimit, value)
|
59
|
+
end
|
60
|
+
|
61
|
+
def username(value = nil)
|
62
|
+
setting(:userName, value)
|
8
63
|
end
|
9
64
|
|
10
65
|
def settings
|
11
|
-
settings
|
12
|
-
|
13
|
-
|
66
|
+
@settings
|
67
|
+
end
|
68
|
+
|
69
|
+
private
|
70
|
+
|
71
|
+
def setting(key, value)
|
72
|
+
@settings[key] = value unless value.nil?
|
73
|
+
@settings[key]
|
14
74
|
end
|
15
75
|
|
16
76
|
end
|
data/lib/iisconfig/runner.rb
CHANGED
File without changes
|
data/lib/iisconfig.rb
CHANGED
File without changes
|
data/test/example.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iisconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -46,21 +46,21 @@ executables:
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
-
-
|
49
|
+
- VERSION
|
50
|
+
- bin/iisconfig
|
51
|
+
- lib/iisconfig.rb
|
50
52
|
- lib/iisconfig/app_pool.rb
|
53
|
+
- lib/iisconfig/application.rb
|
51
54
|
- lib/iisconfig/configuration.rb
|
52
55
|
- lib/iisconfig/ftp_site.rb
|
53
|
-
- lib/iisconfig/iisconfig.rb
|
54
56
|
- lib/iisconfig/iis_object.rb
|
57
|
+
- lib/iisconfig/iisconfig.rb
|
55
58
|
- lib/iisconfig/process_model.rb
|
56
59
|
- lib/iisconfig/runner.rb
|
57
60
|
- lib/iisconfig/site.rb
|
58
61
|
- lib/iisconfig/version.rb
|
59
62
|
- lib/iisconfig/virtual_directory.rb
|
60
|
-
- lib/iisconfig.rb
|
61
|
-
- VERSION
|
62
63
|
- test/example.rb
|
63
|
-
- bin/iisconfig
|
64
64
|
homepage: https://github.com/lukesmith/iisconfig
|
65
65
|
licenses: []
|
66
66
|
metadata: {}
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project: iisconfig
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.2.2
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: IIS Config
|