This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'json' | |
| file = File.read('metadata.json') | |
| parsed = JSON.parse(file) | |
| if parsed.to_s.include? 'stdlib' | |
| puts 'Run script on ' + parsed['name'] + '.' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'json' | |
| require 'yaml' | |
| require 'pry' | |
| file = File.read('metadata.json') | |
| parsed = JSON.parse(file) | |
| parsed['dependencies'].each do |num| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/ruby | |
| require 'yaml' # Built in, no gem required | |
| # d = YAML.load_file('ci-file.yaml') # Load | |
| module_name = "mysql" | |
| # Method within Nodeset Generation to parse ci-job-configs and return OS | |
| ci_config = File.open('modules-unified.yaml') { |yf| YAML.load(yf) } | |
| for project in ci_config | |
| test = project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'json' | |
| file = open("#{__dir__}/metadata.json") | |
| json = file.read | |
| output = JSON.parse(json) | |
| metadata_string = output['operatingsystem_support'] | |
| unsupported = ['Amazon', 'Archlinux', 'AIX', 'OSX'] | |
| operating_system_list = [] | |
| for os_info in metadata_string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper_acceptance' | |
| require 'beaker/i18n_helper' | |
| describe 'mysql localization', unless: fact('operatingsystem') == 'Debian' do | |
| before :all do | |
| hosts.each do |host| | |
| on(host, "sed -i \"96i FastGettext.locale='ja'\" /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb") | |
| change_locale_on(host, "ja_JP") | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'puppet' | |
| require 'beaker-rspec' | |
| require 'beaker/puppet_install_helper' | |
| require 'beaker/module_install_helper' | |
| require 'beaker/i18n_helper' | |
| run_puppet_install_helper | |
| install_ca_certs unless ENV['PUPPET_INSTALL_TYPE'] =~ %r{pe}i | |
| install_module_on(hosts) | |
| install_module_dependencies_on(hosts) |