inetmgr 0.4.0 → 0.5.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.
- data/RELEASE-NOTES.rdoc +13 -3
- data/inetmgr-0.4.0.gem +0 -0
- data/inetmgr.gemspec +1 -1
- data/lib/inetmgr/configuration.rb +7 -9
- data/lib/inetmgr/iis_configuration.rb +2 -2
- data/lib/inetmgr/site_configuration.rb +2 -2
- data/spec/spec_env.rb +2 -0
- data/test/rakefile.rb +0 -3
- metadata +4 -3
data/RELEASE-NOTES.rdoc
CHANGED
@@ -1,12 +1,22 @@
|
|
1
1
|
= inetmgr Release Notes
|
2
2
|
|
3
|
-
== Latest Version (0.
|
3
|
+
== Latest Version (0.5.0)
|
4
4
|
|
5
|
-
-
|
6
|
-
- Added support for site-level configuration (only appSettings, for now).
|
5
|
+
- Added support for managing remote IIS instances (added server argument to COnfiguration class)
|
7
6
|
|
8
7
|
== Previous Versions
|
9
8
|
|
9
|
+
=== 0.4.0
|
10
|
+
|
11
|
+
- removed mswin32 platform indfication from gemspec, this setting turned out to be a bit too inconsistent
|
12
|
+
- added method_missing override and conventional ruby_style to camelCase conversion, this avoid declaring properties that just change due to naming conventions
|
13
|
+
- added wrapper classes for process model, periodic satrt, etc.
|
14
|
+
|
15
|
+
=== 0.3.0
|
16
|
+
|
17
|
+
- more property mappings for ApplicationPool & Site.
|
18
|
+
- Added support for site-level configuration (only appSettings, for now).
|
19
|
+
|
10
20
|
=== 0.2.1
|
11
21
|
|
12
22
|
- Added static configure method to IisConfiguratin to support atomic changes:
|
data/inetmgr-0.4.0.gem
ADDED
Binary file
|
data/inetmgr.gemspec
CHANGED
@@ -4,7 +4,7 @@ require 'rake/gempackagetask'
|
|
4
4
|
spec = Gem::Specification.new do |s|
|
5
5
|
|
6
6
|
s.name = "inetmgr"
|
7
|
-
s.version = "0.
|
7
|
+
s.version = "0.5.0"
|
8
8
|
s.summary = "A library for managing IIS configuration settings."
|
9
9
|
s.description = "inetmgr allows you to inspect/configure IIS configuration sections and elements."
|
10
10
|
|
@@ -1,23 +1,21 @@
|
|
1
1
|
|
2
|
-
class Configuration
|
2
|
+
class Configuration
|
3
3
|
|
4
|
-
def initialize(path)
|
5
|
-
@admin_manager = WIN32OLE.new "Microsoft.ApplicationHost.WritableAdminManager"
|
4
|
+
def initialize(path, server = nil)
|
5
|
+
@admin_manager = WIN32OLE.new "Microsoft.ApplicationHost.WritableAdminManager", server
|
6
6
|
@admin_manager.CommitPath = path;
|
7
7
|
end
|
8
8
|
|
9
9
|
# applies/commits all changes made since the creation of the
|
10
10
|
# IisConfiguration instance or the last time this method was called.
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
def apply_changes
|
12
|
+
@admin_manager.CommitChanges
|
13
|
+
end
|
14
14
|
|
15
15
|
private
|
16
16
|
|
17
|
-
def get_admin_section
|
17
|
+
def get_admin_section(section_name)
|
18
18
|
@admin_manager.GetAdminSection(section_name, @admin_manager.CommitPath)
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
|
23
21
|
end
|
@@ -5,8 +5,8 @@ require File.join(File.expand_path(File.dirname(__FILE__)), 'iis_object/auto_sta
|
|
5
5
|
# Represents the local IIS configuration settings (meta base).
|
6
6
|
class IisConfiguration < Configuration
|
7
7
|
|
8
|
-
def initialize
|
9
|
-
super "MACHINE/WEBROOT/APPHOST"
|
8
|
+
def initialize(server = nil)
|
9
|
+
super "MACHINE/WEBROOT/APPHOST", server
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.configure
|
data/spec/spec_env.rb
CHANGED
data/test/rakefile.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 5
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.5.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Gino Heyman
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-08-11 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- doc/SiteConfiguration.html
|
74
74
|
- doc/SiteLimit.html
|
75
75
|
- doc/VirtualDirectory.html
|
76
|
+
- inetmgr-0.4.0.gem
|
76
77
|
- inetmgr.gemspec
|
77
78
|
- lib/inetmgr/configuration.rb
|
78
79
|
- lib/inetmgr/iis_configuration.rb
|