Sha256: c1e374ca32b0b0339e2c2a4dbdc61f8fa407cc5d056cc1fb349d61bdf1a09f02
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 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).deep_symbolize_keys @client = client end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mikoshi-0.1.5 | lib/mikoshi/plan.rb |
mikoshi-0.1.4 | lib/mikoshi/plan.rb |
mikoshi-0.1.3 | lib/mikoshi/plan.rb |
mikoshi-0.1.2 | lib/mikoshi/plan.rb |