class Hanzo::Fetchers::Environment

Public Class Methods

new(env) click to toggle source
# File lib/hanzo/fetchers/environment.rb, line 4
def initialize(env)
  @env = env
end

Public Instance Methods

exist?() click to toggle source
# File lib/hanzo/fetchers/environment.rb, line 8
def exist?
  environments.include?(@env)
end
installed?() click to toggle source
# File lib/hanzo/fetchers/environment.rb, line 12
def installed?
  installed_environments.include?(@env)
end

Protected Instance Methods

environments() click to toggle source
# File lib/hanzo/fetchers/environment.rb, line 22
def environments
  Hanzo::Installers::Remotes.environments
end
installed_environments() click to toggle source
# File lib/hanzo/fetchers/environment.rb, line 18
def installed_environments
  Hanzo::Installers::Remotes.installed_environments
end