Sha256: 07f7eb2ac1b8d89a852877bc346bd3ad2c3b42daa1280a11fdaab7996efbca0f

Contents?: true

Size: 745 Bytes

Versions: 1

Compression:

Stored size: 745 Bytes

Contents

require 'zpng'
require 'iostruct'

require 'zsteg/extractor/byte_extractor'
require 'zsteg/extractor/color_extractor'
require 'zsteg/extractor'

require 'zsteg/checker'
require 'zsteg/result'
require 'zsteg/file_cmd'

require 'zsteg/masker'

require 'zsteg/analyzer'

module ZSteg::CLI
  class << self
    def run
      a = File.basename($0).downcase.scan(/\w+/) - %w'zsteg rb'
      a = %w'cli' if a.empty?

      klass = a.map(&:capitalize).join
      req = a.join('_')
      require File.expand_path( File.join('zsteg', 'cli', req), File.dirname(__FILE__))

      const_get(klass).new.run
    end

    # shortcut for ZSteg::CLI::Cli.new, mostly for RSpec
    def new *args
      require 'zsteg/cli/cli'
      Cli.new(*args)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zsteg-0.2.13 lib/zsteg.rb