Sha256: 9e21f6adab2d720b78cc28b0b70c115ad068c6bae90fe1315b03bde3cde48e2b

Contents?: true

Size: 467 Bytes

Versions: 11

Compression:

Stored size: 467 Bytes

Contents

module Hanzo
  module Fetchers
    class Environment
      def initialize(env)
        @env = env
      end

      def exist?
        environments.include?(@env)
      end

      def installed?
        installed_environments.include?(@env)
      end

    protected

      def installed_environments
        Hanzo::Installers::Remotes.installed_environments
      end

      def environments
        Hanzo::Installers::Remotes.environments
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hanzo-1.1.0 lib/hanzo/fetchers/environment.rb
hanzo-1.0.2 lib/hanzo/fetchers/environment.rb
hanzo-1.0.1 lib/hanzo/fetchers/environment.rb
hanzo-1.0.0 lib/hanzo/fetchers/environment.rb
hanzo-0.6.2 lib/hanzo/fetchers/environment.rb
hanzo-0.6.1 lib/hanzo/fetchers/environment.rb
hanzo-0.6 lib/hanzo/fetchers/environment.rb
hanzo-0.5 lib/hanzo/fetchers/environment.rb
hanzo-0.4.5 lib/hanzo/fetchers/environment.rb
hanzo-0.4.4 lib/hanzo/fetchers/environment.rb
hanzo-0.4.3 lib/hanzo/fetchers/environment.rb