iisconfig 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/VERSION +1 -1
- data/bin/iisconfig +7 -7
- data/lib/iisconfig.rb +42 -42
- data/lib/iisconfig/app_pool.rb +118 -110
- data/lib/iisconfig/application.rb +46 -46
- data/lib/iisconfig/configuration.rb +101 -101
- data/lib/iisconfig/ftp_site.rb +91 -91
- data/lib/iisconfig/iis_object.rb +34 -34
- data/lib/iisconfig/iisconfig.rb +2 -2
- data/lib/iisconfig/process_model.rb +77 -77
- data/lib/iisconfig/runner.rb +25 -25
- data/lib/iisconfig/site.rb +84 -84
- data/lib/iisconfig/version.rb +4 -4
- data/lib/iisconfig/virtual_directory.rb +29 -29
- data/test/example.rb +53 -52
- metadata +8 -8
data/test/example.rb
CHANGED
@@ -1,53 +1,54 @@
|
|
1
|
-
before do
|
2
|
-
puts 'before'
|
3
|
-
end
|
4
|
-
|
5
|
-
app_pool do |p|
|
6
|
-
p.name :MyAppPool
|
7
|
-
p.runtime_version :'v2.0'
|
8
|
-
p.
|
9
|
-
|
10
|
-
m.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
s.
|
16
|
-
s.
|
17
|
-
s.binding 'http/*:8090:
|
18
|
-
s.binding
|
19
|
-
s.binding "net.
|
20
|
-
s.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
a.
|
25
|
-
a.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
v.
|
30
|
-
v.
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
v.
|
37
|
-
v.
|
38
|
-
|
39
|
-
|
40
|
-
end
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
s.
|
45
|
-
s.
|
46
|
-
s.
|
47
|
-
s.
|
48
|
-
s.
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
1
|
+
before do
|
2
|
+
puts 'before'
|
3
|
+
end
|
4
|
+
|
5
|
+
app_pool do |p|
|
6
|
+
p.name :MyAppPool
|
7
|
+
p.runtime_version :'v2.0'
|
8
|
+
p.start_mode 'AlwaysRunning'
|
9
|
+
p.process_model do |m|
|
10
|
+
m.identity_type :NetworkService
|
11
|
+
m.idle_timeout '0.00:30:00'
|
12
|
+
end
|
13
|
+
|
14
|
+
p.site do |s|
|
15
|
+
s.name :MySite
|
16
|
+
s.path '/'
|
17
|
+
s.binding 'http/*:8090:localhost'
|
18
|
+
s.binding 'http/*:8090:test.local'
|
19
|
+
s.binding "net.tcp/808:*"
|
20
|
+
s.binding "net.pipe/*"
|
21
|
+
s.physical_path 'c:\\temp\\MySite'
|
22
|
+
|
23
|
+
s.application do |a|
|
24
|
+
a.name :MyApp
|
25
|
+
a.path '/MyApp'
|
26
|
+
a.physical_path 'c:\\temp\\MySite\\MyApp'
|
27
|
+
|
28
|
+
a.virtual_directory do |v|
|
29
|
+
v.name :MyAppVirtualDirectory
|
30
|
+
v.path '/AppVDir'
|
31
|
+
v.physical_path 'c:\\temp\\MySite\MyVDir'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
s.virtual_directory do |v|
|
36
|
+
v.name :MySiteVirtualDirectory
|
37
|
+
v.path '/SiteVDir'
|
38
|
+
v.physical_path 'c:\\temp\\MySite\MyVDir'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
ftp_site do |s|
|
44
|
+
s.name :MyFtp
|
45
|
+
s.binding 'ftp://*:21'
|
46
|
+
s.physical_path 'c:\\temp\\MyFtp'
|
47
|
+
s.enable_authentication :anonymous
|
48
|
+
s.allow_authorization [:read, :write], { :users => '*', :roles => '' }
|
49
|
+
s.allow_ssl
|
50
|
+
end
|
51
|
+
|
52
|
+
after do
|
53
|
+
puts "done"
|
53
54
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iisconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
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: 2015-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
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
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rainbow
|
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: :runtime
|
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
|
description: IIS Configuration
|
@@ -70,12 +70,12 @@ require_paths:
|
|
70
70
|
- lib
|
71
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- -
|
78
|
+
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|