Module: Serverspec::Type
- Defined in:
- lib/octopus_serverspec_extensions/type/octopus_deploy_upgrade_config.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_project_group.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_worker_pool.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_smtp_config.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_environment.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_tentacle.rb,
lib/octopus_serverspec_extensions/type/windows_scheduled_task.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_account.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_worker.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_space.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_user.rb,
lib/octopus_serverspec_extensions/type/octopus_deploy_team.rb,
lib/octopus_serverspec_extensions/type/java_property_file.rb,
lib/octopus_serverspec_extensions/type/chocolatey_package.rb,
lib/octopus_serverspec_extensions/type/windows_firewall.rb,
lib/octopus_serverspec_extensions/type/windows_dsc.rb,
lib/octopus_serverspec_extensions/type/npm_package.rb
Defined Under Namespace
Classes: ChocolateyPackage, JavaPropertyFile, NpmPackage, OctopusDeployAccount, OctopusDeployEnvironment, OctopusDeployProjectGroup, OctopusDeploySmtpConfig, OctopusDeploySpace, OctopusDeployTeam, OctopusDeployTentacle, OctopusDeployUpgradeConfig, OctopusDeployUser, OctopusDeployWorker, OctopusDeployWorkerPool, WindowsDSC, WindowsFirewall, WindowsScheduledTask
Instance Method Summary
collapse
-
#chocolatey_package(name) ⇒ Object
-
#java_property_file(name) ⇒ Object
-
#npm_package(name) ⇒ Object
-
#octopus_account(*url_and_api_key, account_name) ⇒ Object
-
#octopus_deploy_account(*url_and_api_key, account_name) ⇒ Object
-
#octopus_deploy_environment(*url_and_api_key, environment_name) ⇒ Object
module-level constructors/entrypoints.
-
#octopus_deploy_project_group(*url_and_api_key, project_group_name) ⇒ Object
-
#octopus_deploy_projectgroup(*url_and_api_key, project_group_name) ⇒ Object
module-level constructors/entrypoints.
-
#octopus_deploy_smtp_config(*url_and_api_key) ⇒ Object
module-level constructors/entrypoints.
-
#octopus_deploy_space(*url_and_api_key, space_name) ⇒ Object
module-level constructors/entrypoints.
-
#octopus_deploy_team(*url_and_api_key, team_name) ⇒ Object
-
#octopus_deploy_tentacle(serverUrl, apiKey, instance) ⇒ Object
-
#octopus_deploy_upgrade_config(*url_and_api_key) ⇒ Object
module-level constructors/entrypoints.
-
#octopus_deploy_user(*url_and_api_key, user_name) ⇒ Object
module-level constructors/entrypoints.
-
#octopus_deploy_worker(serverUrl, apiKey, instance) ⇒ Object
-
#octopus_deploy_worker_pool(*url_and_api_key, worker_pool_name) ⇒ Object
-
#octopus_environment(*url_and_api_key, environment_name) ⇒ Object
-
#octopus_project_group(*url_and_api_key, project_group_name) ⇒ Object
-
#octopus_projectgroup(*url_and_api_key, project_group_name) ⇒ Object
deprecated - no underscore in name.
-
#octopus_smtp_config(*url_and_api_key) ⇒ Object
-
#octopus_space(*url_and_api_key, space_name) ⇒ Object
-
#octopus_team(*url_and_api_key, team_name) ⇒ Object
-
#octopus_upgrade_config(*url_and_api_key) ⇒ Object
-
#octopus_user(*url_and_api_key, user_name) ⇒ Object
-
#octopus_worker_pool(*url_and_api_key, worker_pool_name) ⇒ Object
-
#windows_dsc ⇒ Object
-
#windows_firewall ⇒ Object
-
#windows_scheduled_task(name) ⇒ Object
Instance Method Details
#chocolatey_package(name) ⇒ Object
29
30
31
|
# File 'lib/octopus_serverspec_extensions/type/chocolatey_package.rb', line 29
def chocolatey_package(name)
ChocolateyPackage.new(name)
end
|
#java_property_file(name) ⇒ Object
24
25
26
|
# File 'lib/octopus_serverspec_extensions/type/java_property_file.rb', line 24
def java_property_file(name)
JavaPropertyFile.new(name)
end
|
#npm_package(name) ⇒ Object
32
33
34
|
# File 'lib/octopus_serverspec_extensions/type/npm_package.rb', line 32
def npm_package(name)
NpmPackage.new(name)
end
|
#octopus_account(*url_and_api_key, account_name) ⇒ Object
144
145
146
147
148
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_account.rb', line 144
def octopus_account(*url_and_api_key, account_name)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeployAccount.new(serverUrl, apiKey, account_name)
end
|
#octopus_deploy_account(*url_and_api_key, account_name) ⇒ Object
138
139
140
141
142
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_account.rb', line 138
def octopus_deploy_account(*url_and_api_key, account_name)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeployAccount.new(serverUrl, apiKey, account_name)
end
|
#octopus_deploy_environment(*url_and_api_key, environment_name) ⇒ Object
module-level constructors/entrypoints
81
82
83
84
85
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_environment.rb', line 81
def octopus_deploy_environment(*url_and_api_key, environment_name)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeployEnvironment.new(serverUrl, apiKey, environment_name)
end
|
#octopus_deploy_project_group(*url_and_api_key, project_group_name) ⇒ Object
76
77
78
79
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_project_group.rb', line 76
def octopus_deploy_project_group(*url_and_api_key, project_group_name)
url, apikey = get_octopus_creds(url_and_api_key)
octopus_deploy_projectgroup(url, apikey, project_group_name)
end
|
#octopus_deploy_projectgroup(*url_and_api_key, project_group_name) ⇒ Object
module-level constructors/entrypoints
71
72
73
74
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_project_group.rb', line 71
def octopus_deploy_projectgroup(*url_and_api_key, project_group_name) serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeployProjectGroup.new(serverUrl, apiKey, project_group_name)
end
|
#octopus_deploy_smtp_config(*url_and_api_key) ⇒ Object
module-level constructors/entrypoints
80
81
82
83
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_smtp_config.rb', line 80
def octopus_deploy_smtp_config(*url_and_api_key)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeploySmtpConfig.new(serverUrl, apiKey)
end
|
#octopus_deploy_space(*url_and_api_key, space_name) ⇒ Object
module-level constructors/entrypoints
59
60
61
62
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_space.rb', line 59
def octopus_deploy_space(*url_and_api_key, space_name)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeploySpace.new(serverUrl, apiKey, space_name)
end
|
#octopus_deploy_team(*url_and_api_key, team_name) ⇒ Object
51
52
53
54
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_team.rb', line 51
def octopus_deploy_team(*url_and_api_key, team_name)
serverUrl,apiKey = get_octopus_creds(url_and_api_key)
OctopusDeployTeam.new(serverUrl, apiKey, team_name)
end
|
#octopus_deploy_tentacle(serverUrl, apiKey, instance) ⇒ Object
149
150
151
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_tentacle.rb', line 149
def octopus_deploy_tentacle(serverUrl, apiKey, instance)
OctopusDeployTentacle.new(serverUrl, apiKey, instance)
end
|
#octopus_deploy_upgrade_config(*url_and_api_key) ⇒ Object
module-level constructors/entrypoints
65
66
67
68
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_upgrade_config.rb', line 65
def octopus_deploy_upgrade_config(*url_and_api_key)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeployUpgradeConfig.new(serverUrl, apiKey)
end
|
#octopus_deploy_user(*url_and_api_key, user_name) ⇒ Object
module-level constructors/entrypoints
81
82
83
84
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_user.rb', line 81
def octopus_deploy_user(*url_and_api_key, user_name)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeployUser.new(serverUrl, apiKey, user_name)
end
|
#octopus_deploy_worker(serverUrl, apiKey, instance) ⇒ Object
114
115
116
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_worker.rb', line 114
def octopus_deploy_worker(serverUrl, apiKey, instance)
OctopusDeployWorker.new(serverUrl, apiKey, instance)
end
|
#octopus_deploy_worker_pool(*url_and_api_key, worker_pool_name) ⇒ Object
52
53
54
55
56
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_worker_pool.rb', line 52
def octopus_deploy_worker_pool(*url_and_api_key, worker_pool_name)
serverUrl, apiKey = get_octopus_url(url_and_api_key)
OctopusDeployWorkerPool.new(serverUrl, apiKey, worker_pool_name)
end
|
#octopus_environment(*url_and_api_key, environment_name) ⇒ Object
87
88
89
90
91
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_environment.rb', line 87
def octopus_environment(*url_and_api_key, environment_name)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeployEnvironment.new(serverUrl, apiKey, environment_name)
end
|
#octopus_project_group(*url_and_api_key, project_group_name) ⇒ Object
81
82
83
84
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_project_group.rb', line 81
def octopus_project_group(*url_and_api_key, project_group_name)
url, apikey = get_octopus_creds(url_and_api_key)
octopus_deploy_projectgroup(url, apikey, project_group_name)
end
|
#octopus_projectgroup(*url_and_api_key, project_group_name) ⇒ Object
deprecated - no underscore in name
86
87
88
89
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_project_group.rb', line 86
def octopus_projectgroup(*url_and_api_key, project_group_name) url, apikey = get_octopus_creds(url_and_api_key)
octopus_deploy_projectgroup(url, apikey, project_group_name)
end
|
#octopus_smtp_config(*url_and_api_key) ⇒ Object
85
86
87
88
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_smtp_config.rb', line 85
def octopus_smtp_config(*url_and_api_key)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
octopus_deploy_smtp_config(serverUrl, apiKey)
end
|
#octopus_space(*url_and_api_key, space_name) ⇒ Object
64
65
66
67
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_space.rb', line 64
def octopus_space(*url_and_api_key, space_name)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
OctopusDeploySpace.new(serverUrl, apiKey, space_name)
end
|
#octopus_team(*url_and_api_key, team_name) ⇒ Object
56
57
58
59
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_team.rb', line 56
def octopus_team(*url_and_api_key, team_name)
serverUrl,apiKey = get_octopus_creds(url_and_api_key)
OctopusDeployTeam.new(serverUrl, apiKey, team_name)
end
|
#octopus_upgrade_config(*url_and_api_key) ⇒ Object
70
71
72
73
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_upgrade_config.rb', line 70
def octopus_upgrade_config(*url_and_api_key)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
octopus_deploy_upgrade_config(serverUrl, apiKey)
end
|
#octopus_user(*url_and_api_key, user_name) ⇒ Object
86
87
88
89
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_user.rb', line 86
def octopus_user(*url_and_api_key, user_name)
serverUrl, apiKey = get_octopus_creds(url_and_api_key)
octopus_deploy_user(serverUrl, apiKey, user_name)
end
|
#octopus_worker_pool(*url_and_api_key, worker_pool_name) ⇒ Object
58
59
60
61
62
|
# File 'lib/octopus_serverspec_extensions/type/octopus_deploy_worker_pool.rb', line 58
def octopus_worker_pool(*url_and_api_key, worker_pool_name)
serverUrl, apiKey = get_octopus_url(url_and_api_key)
OctopusDeployWorkerPool.new(serverUrl, apiKey, worker_pool_name)
end
|
#windows_dsc ⇒ Object
27
28
29
|
# File 'lib/octopus_serverspec_extensions/type/windows_dsc.rb', line 27
def windows_dsc
WindowsDSC.new
end
|
#windows_firewall ⇒ Object
27
28
29
|
# File 'lib/octopus_serverspec_extensions/type/windows_firewall.rb', line 27
def windows_firewall
WindowsFirewall.new
end
|
#windows_scheduled_task(name) ⇒ Object
28
29
30
|
# File 'lib/octopus_serverspec_extensions/type/windows_scheduled_task.rb', line 28
def windows_scheduled_task(name)
WindowsScheduledTask.new(name)
end
|