inetmgr 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,22 @@
1
1
  = inetmgr Release Notes
2
2
 
3
- == Latest Version (0.3.0)
3
+ == Latest Version (0.5.0)
4
4
 
5
- - more property mappings for ApplicationPool & Site.
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:
Binary file
@@ -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.4.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
- def apply_changes
12
- @admin_manager.CommitChanges
13
- end
11
+ def apply_changes
12
+ @admin_manager.CommitChanges
13
+ end
14
14
 
15
15
  private
16
16
 
17
- def get_admin_section section_name
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
@@ -1,8 +1,8 @@
1
1
 
2
2
  class SiteConfiguration < Configuration
3
3
 
4
- def initialize(name)
5
- super "MACHINE/WEBROOT/APPHOST/#{name}"
4
+ def initialize(name, server = nil)
5
+ super "MACHINE/WEBROOT/APPHOST/#{name}", server
6
6
  end
7
7
 
8
8
  def get_app_settings
@@ -12,6 +12,8 @@ module RSpecExtensions
12
12
  end
13
13
 
14
14
  def generate_random_name
15
+ # workaround because IronRuby does not implement File.flock (yet)
16
+ return System::Guid.NewGuid.to_s if RUBY_ENGINE == "ironruby"
15
17
  UUID.generate(:compact).to_s
16
18
  end
17
19
 
@@ -22,6 +22,3 @@ task :show_all_settings do
22
22
  puts sprintf "%-25s|%-10s", s.name, s.auto_start
23
23
  end
24
24
  end
25
-
26
-
27
-
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
7
+ - 5
8
8
  - 0
9
- version: 0.4.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-04-16 00:00:00 +02:00
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