mirror of
https://github.com/inspec/inspec
synced 2024-11-26 06:30:26 +00:00
combine resoure+resources -> resource.rb
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
84102b89de
commit
df8a668d8c
3 changed files with 37 additions and 40 deletions
|
@ -10,7 +10,6 @@ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
|||
|
||||
require 'vulcano/version'
|
||||
require 'vulcano/resource'
|
||||
require 'vulcano/resources'
|
||||
require 'vulcano/rspec_json_formatter'
|
||||
require 'vulcano/rule'
|
||||
require 'vulcano/runner'
|
||||
|
|
|
@ -17,3 +17,40 @@ module Vulcano
|
|||
Vulcano::Plugins::Resource
|
||||
end
|
||||
end
|
||||
|
||||
require 'resources/apache_conf'
|
||||
require 'resources/audit_policy'
|
||||
require 'resources/auditd_conf'
|
||||
require 'resources/auditd_rules'
|
||||
require 'resources/command'
|
||||
require 'resources/env'
|
||||
require 'resources/etc_group'
|
||||
require 'resources/file'
|
||||
require 'resources/group_policy'
|
||||
require 'resources/inetd_conf'
|
||||
require 'resources/limits_conf'
|
||||
require 'resources/login_def'
|
||||
require 'resources/mysql'
|
||||
require 'resources/mysql_conf'
|
||||
require 'resources/mysql_session'
|
||||
require 'resources/ntp_conf'
|
||||
require 'resources/parse_config'
|
||||
require 'resources/passwd'
|
||||
require 'resources/postgres'
|
||||
require 'resources/postgres_conf'
|
||||
require 'resources/postgres_session'
|
||||
require 'resources/processes'
|
||||
require 'resources/registry_key'
|
||||
require 'resources/security_policy'
|
||||
require 'resources/ssh_conf'
|
||||
|
||||
# extend serverspec types
|
||||
module Serverspec
|
||||
module Type
|
||||
|
||||
def directory(name)
|
||||
Directory.new(name)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
# encoding: utf-8
|
||||
require 'vulcano/resource'
|
||||
|
||||
require 'resources/apache_conf'
|
||||
require 'resources/audit_policy'
|
||||
require 'resources/auditd_conf'
|
||||
require 'resources/auditd_rules'
|
||||
# require 'resources/command'
|
||||
require 'resources/env'
|
||||
require 'resources/etc_group'
|
||||
# require 'resources/file'
|
||||
# require 'resources/group_policy'
|
||||
require 'resources/inetd_conf'
|
||||
require 'resources/limits_conf'
|
||||
require 'resources/login_def'
|
||||
require 'resources/mysql'
|
||||
require 'resources/mysql_conf'
|
||||
require 'resources/mysql_session'
|
||||
require 'resources/ntp_conf'
|
||||
require 'resources/parse_config'
|
||||
require 'resources/passwd'
|
||||
require 'resources/postgres'
|
||||
require 'resources/postgres_conf'
|
||||
require 'resources/postgres_session'
|
||||
require 'resources/processes'
|
||||
require 'resources/registry_key'
|
||||
require 'resources/security_policy'
|
||||
require 'resources/ssh_conf'
|
||||
|
||||
# extend serverspec types
|
||||
module Serverspec
|
||||
module Type
|
||||
|
||||
def directory(name)
|
||||
Directory.new(name)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue