Class: Kitchen::Driver::VmpoolStores::GitlabSnippetStore
- Inherits:
-
GitlabBaseStore
- Object
- BaseStore
- FileBaseStore
- GitlabBaseStore
- Kitchen::Driver::VmpoolStores::GitlabSnippetStore
- Defined in:
- lib/kitchen/driver/vmpool_stores/gitlab_snippet_store.rb
Instance Attribute Summary collapse
-
#pool_file ⇒ Object
readonly
Returns the value of attribute pool_file.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#snippet_id ⇒ Object
Returns the value of attribute snippet_id.
Attributes inherited from FileBaseStore
Instance Method Summary collapse
-
#initialize(options = nil) ⇒ GitlabSnippetStore
constructor
A new instance of GitlabSnippetStore.
Methods inherited from FileBaseStore
#mark_unused, #take_pool_member
Methods inherited from BaseStore
#mark_unused, #take_pool_member
Constructor Details
#initialize(options = nil) ⇒ GitlabSnippetStore
Returns a new instance of GitlabSnippetStore.
13 14 15 16 17 18 19 |
# File 'lib/kitchen/driver/vmpool_stores/gitlab_snippet_store.rb', line 13 def initialize( = nil) ||= { project_id: nil, snippet_id: nil, pool_file: 'vmpool'} raise ArgumentError.new("You must pass the project_id option") unless ['project_id'].to_i > 0 @snippet_id = ['snippet_id'] #ie. 34422 @project_id = ['project_id'] #ie. 89 @pool_file = ['pool_file'] end |
Instance Attribute Details
#pool_file ⇒ Object (readonly)
Returns the value of attribute pool_file.
8 9 10 |
# File 'lib/kitchen/driver/vmpool_stores/gitlab_snippet_store.rb', line 8 def pool_file @pool_file end |
#project_id ⇒ Object
Returns the value of attribute project_id.
7 8 9 |
# File 'lib/kitchen/driver/vmpool_stores/gitlab_snippet_store.rb', line 7 def project_id @project_id end |
#snippet_id ⇒ Object
Returns the value of attribute snippet_id.
7 8 9 |
# File 'lib/kitchen/driver/vmpool_stores/gitlab_snippet_store.rb', line 7 def snippet_id @snippet_id end |