Sha256: d2f2ef6ce3e22e4d8e9166d4baed9c9309e3a4d5d60b22d331ac6e7962fdcb55

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

module Pbmenv
  class Helper
    def self.system_and_puts(shell)
      to_stdout "[SHELL] #{shell}"
      system(shell)
    end

    def self.to_stdout(text)
      puts text
    end

    def self.normalize_version(version)
      /\Av?([\w.]*)\z/ =~ version && $1
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pbmenv-0.1.12 lib/pbmenv/helper.rb
pbmenv-0.1.11 lib/pbmenv/helper.rb
pbmenv-0.1.10 lib/pbmenv/helper.rb