Module: Deployman::App::Configuration
- Defined in:
- lib/deployman/app/configuration.rb
Class Method Summary collapse
-
.create(path, values) ⇒ Object
create path = “/sandbox/liveserver/customerName/software/repoOnwer/repoName/releases/v2.2.0”.
-
.delete(path) ⇒ Object
delete.
-
.get(path) ⇒ Object
get.
Class Method Details
.create(path, values) ⇒ Object
create path = “/sandbox/liveserver/customerName/software/repoOnwer/repoName/releases/v2.2.0”
7 8 9 10 11 12 13 |
# File 'lib/deployman/app/configuration.rb', line 7 def self.create(path, values) # if exists, file will be overwritten File.open(path + '/deployman.yml', 'wb') do |file| file.write(values.to_yaml) file.close end end |
.delete(path) ⇒ Object
delete
16 17 18 |
# File 'lib/deployman/app/configuration.rb', line 16 def self.delete(path) File.delete(path + '/deployman.yml') end |
.get(path) ⇒ Object
get
21 22 23 |
# File 'lib/deployman/app/configuration.rb', line 21 def self.get(path) config = YAML::load_file(path + '/deployman.yml') end |