Class: Bowndler::Commands::RecursiveBowerConfigure::Gem

Inherits:
Object
  • Object
show all
Defined in:
lib/bowndler/commands/recursive_bower_configure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Gem

Returns a new instance of Gem.



10
11
12
13
# File 'lib/bowndler/commands/recursive_bower_configure.rb', line 10

def initialize(name)
  gem_path = Bundler.rubygems.find_name(name).first.full_gem_path
  @manifest_path = Pathname.new(gem_path).join('bower.json.erb')
end

Instance Attribute Details

#manifest_pathObject (readonly)

Returns the value of attribute manifest_path.



8
9
10
# File 'lib/bowndler/commands/recursive_bower_configure.rb', line 8

def manifest_path
  @manifest_path
end

Instance Method Details

#uses_bowndler?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/bowndler/commands/recursive_bower_configure.rb', line 15

def uses_bowndler?
  manifest_path.exist?
end