Sha256: 25de814ce35cce1f27bd6c9cb0212451de7221d61f8cf8f56dad4fe5041bc3c0
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 Bytes
Contents
require 'active_support/core_ext/hash/keys' require 'erb' require 'yaml' module Mikoshi class Plan class Base attr_reader :data, :client def initialize(yaml_path: nil, client: nil) raise ArgumentError, 'Yaml file path is required.' if yaml_path.nil? raise ArgumentError, 'client is required.' if client.nil? @data = YAML.safe_load(ERB.new(File.new(yaml_path).read).result).symbolize_keys @client = client end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mikoshi-0.1.1 | lib/mikoshi/plan.rb |
mikoshi-0.1.0 | lib/mikoshi/plan.rb |