Class: EacRubyBase0::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_ruby_base0/application.rb

Instance Method Summary collapse

Instance Method Details

#all_gemsObject



20
21
22
# File 'lib/eac_ruby_base0/application.rb', line 20

def all_gems
  vendor_gems + [self_gem]
end

#fs_cacheObject



36
37
38
39
40
# File 'lib/eac_ruby_base0/application.rb', line 36

def fs_cache
  @fs_cache ||= ::EacRubyUtils::FilesystemCache.new(
    cache_dir.join(::EacRubyUtils::FilesystemCache.name.parameterize)
  )
end

#home_dirObject



42
43
44
# File 'lib/eac_ruby_base0/application.rb', line 42

def home_dir
  @home_dir ||= (options[OPTION_HOME_DIR] || ENV.fetch('HOME')).to_pathname
end

#nameObject



46
47
48
# File 'lib/eac_ruby_base0/application.rb', line 46

def name
  options[OPTION_NAME] || self_gem.name
end

#vendor_dirObject



50
51
52
# File 'lib/eac_ruby_base0/application.rb', line 50

def vendor_dir
  gemspec_dir.join('vendor')
end