Sha256: 116f9a93603d5b7b31d6d6abbdb41db8cb2bf7a3e33c923e3ae9040d273d3152

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 Bytes

Contents

# frozen_string_literal: true

require "tty-which"
require "yaml"
require "shellwords"
require "fcntl"
require "time"
require "chronic"
require "fileutils"
require_relative "conductor/version"
require_relative "conductor/env"
require_relative "conductor/config"
require_relative "conductor/hash"
require_relative "conductor/array"
require_relative "conductor/boolean"
require_relative "conductor/string"
require_relative "conductor/script"
require_relative "conductor/command"
require_relative "conductor/condition"

module Conductor
  class << self
    attr_accessor :original_input
    attr_writer :stdin

    def stdin
      warn "input on STDIN required" unless $stdin.stat.size.positive? || $stdin.fcntl(Fcntl::F_GETFL, 0).zero?
      @stdin ||= $stdin.read.strip.force_encoding("utf-8")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
marked-conductor-1.0.11 lib/conductor.rb
marked-conductor-1.0.10 lib/conductor.rb