serverspec 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83861d63e2876141c625ad904e6bd7bb3852aa42
4
- data.tar.gz: 809e499e7c29877b6b46aa0999a05c64972664cb
3
+ metadata.gz: 83e8bc04841f7fd66a8755337cc4d8fcf49a5af9
4
+ data.tar.gz: 28222e0301a16c1151578d0ccb68b0787ecc482d
5
5
  SHA512:
6
- metadata.gz: 52cc0df625ef2f2eb68242803fbc06771c221e07fcac43940ee715c59a888e99d37ddcd51c107053bbee1c5dcb4d74e16e7dde94984c8620afe7085bff8a4c81
7
- data.tar.gz: cb16fe9b39ce470d247f72fd5c26711dbdf97ff23185c298653817b0af90dfa90ad41d76af5d5896f7368fdf0524f8050ee255738eb945f9c7a4807d30861760
6
+ metadata.gz: 55935a59003e2f5cd18117994ecdc60d51415f631fb21b43dd829ca7b4612a6014759f44b26bab563118a8b50797c4bb8ebb1df07877f72cb594dea91d4d789e
7
+ data.tar.gz: ea65adece4368fa30ad467b8f71e8b56b979609125188c97e9988c2f42d5bbdef809efa86ab5fac55cea712b54fe647823a865393dadeb9e55c4fbd06445f937
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require "octorelease"
5
5
  task :spec => 'spec:all'
6
6
 
7
7
  namespace :spec do
8
- oses = %w( darwin debian gentoo plamo redhat redhat7 aix solaris solaris10 solaris11 smartos windows freebsd freebsd10 arch fedora)
8
+ oses = %w( darwin debian gentoo plamo redhat redhat7 aix solaris solaris10 solaris11 smartos windows freebsd freebsd10 arch fedora ubuntu)
9
9
  backends = %w( exec ssh cmd winrm powershell )
10
10
 
11
11
  task :all => [ oses.map {|os| "spec:#{os}" }, backends, :helper, :unit ].flatten
@@ -4,7 +4,7 @@ module Serverspec
4
4
  types = %w(
5
5
  base cgroup command cron default_gateway file group host iis_website iis_app_pool interface
6
6
  ipfilter ipnat iptables kernel_module linux_kernel_parameter lxc mail_alias
7
- package php_config port process routing_table selinux service user yumrepo
7
+ package php_config port ppa process routing_table selinux service user yumrepo
8
8
  windows_feature windows_hot_fix windows_registry_key windows_scheduled_task zfs
9
9
  )
10
10
 
@@ -0,0 +1,13 @@
1
+ module Serverspec
2
+ module Type
3
+ class Ppa < Base
4
+ def exists?
5
+ backend.check_ppa(@name)
6
+ end
7
+
8
+ def enabled?
9
+ backend.check_ppa_enabled(@name)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "1.6.0"
2
+ VERSION = "1.7.0"
3
3
  end
data/serverspec.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "net-ssh"
22
22
  spec.add_runtime_dependency "rspec", "~> 2.13"
23
23
  spec.add_runtime_dependency "highline"
24
- spec.add_runtime_dependency "specinfra", "~> 1.11"
24
+ spec.add_runtime_dependency "specinfra", "~> 1.13"
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
26
26
  spec.add_development_dependency "rake", "~> 10.1.1"
27
27
  spec.add_development_dependency "octokit", "~> 2.7.2"
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ include SpecInfra::Helper::Ubuntu
4
+
5
+ describe 'Serverspec Personal Package Archives(PPA) machers of Ubuntu' do
6
+ describe 'exist' do
7
+ describe ppa('username/ppa-name') do
8
+ it { should exist }
9
+ end
10
+
11
+ describe ppa('invalid-ppa') do
12
+ it { should_not exist }
13
+ end
14
+ end
15
+
16
+ describe 'be_enabled' do
17
+ describe ppa('username/ppa-name') do
18
+ it { should be_enabled }
19
+ end
20
+
21
+ describe ppa('invalid-ppa') do
22
+ it { should_not be_enabled }
23
+ end
24
+ end
25
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-07 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.11'
61
+ version: '1.13'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.11'
68
+ version: '1.13'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -190,6 +190,7 @@ files:
190
190
  - lib/serverspec/type/package.rb
191
191
  - lib/serverspec/type/php_config.rb
192
192
  - lib/serverspec/type/port.rb
193
+ - lib/serverspec/type/ppa.rb
193
194
  - lib/serverspec/type/process.rb
194
195
  - lib/serverspec/type/routing_table.rb
195
196
  - lib/serverspec/type/selinux.rb
@@ -411,6 +412,7 @@ files:
411
412
  - spec/solaris11/zfs_spec.rb
412
413
  - spec/spec_helper.rb
413
414
  - spec/support/powershell_command_runner.rb
415
+ - spec/ubuntu/ppa_spec.rb
414
416
  - spec/unit/command_spec.rb
415
417
  - spec/windows/command_spec.rb
416
418
  - spec/windows/file_spec.rb
@@ -654,6 +656,7 @@ test_files:
654
656
  - spec/solaris11/zfs_spec.rb
655
657
  - spec/spec_helper.rb
656
658
  - spec/support/powershell_command_runner.rb
659
+ - spec/ubuntu/ppa_spec.rb
657
660
  - spec/unit/command_spec.rb
658
661
  - spec/windows/command_spec.rb
659
662
  - spec/windows/file_spec.rb