Permalink
Browse files

Require vendored version of librarian

  • Loading branch information...
1 parent dfdbd85 commit 694c350d2c0dc26c2c5e8ded59f3017177ae2e08 @rodjek committed Jun 4, 2012
Showing with 101 additions and 4 deletions.
  1. +2 −0 bin/librarian-puppet
  2. +99 −4 librarian-puppet.gemspec
View
2 bin/librarian-puppet
@@ -1,7 +1,9 @@
#!/usr/bin/env ruby
lib = File.expand_path('../../lib', __FILE__)
+vendor = File.expand_path('../../vendor/librarian/lib', __FILE__)
$:.unshift(lib) unless $:.include?(lib)
+$:.unshift(vendor) unless $:.include?(vendor)
require 'librarian/puppet/cli'
Librarian::Puppet::Cli.bin!
View
103 librarian-puppet.gemspec
@@ -1,4 +1,5 @@
$:.push File.expand_path("../lib", __FILE__)
+$:.push File.expand_path("../vendor/librarian/lib", __FILE__)
require 'librarian/puppet'
Gem::Specification.new do |s|
@@ -12,20 +13,114 @@ Gem::Specification.new do |s|
s.description = 'another placeholder!'
s.files = [
+ '.gitignore',
+ 'LICENSE',
+ 'README.md',
'bin/librarian-puppet',
+ 'lib/librarian/puppet.rb',
'lib/librarian/puppet/cli.rb',
'lib/librarian/puppet/dsl.rb',
'lib/librarian/puppet/environment.rb',
'lib/librarian/puppet/extension.rb',
+ 'lib/librarian/puppet/source.rb',
'lib/librarian/puppet/source/git.rb',
'lib/librarian/puppet/source/local.rb',
'lib/librarian/puppet/source/path.rb',
- 'lib/librarian/puppet/source.rb',
'lib/librarian/puppet/templates/Puppetfile',
- 'lib/librarian/puppet.rb',
- 'README.md',
+ 'librarian-puppet.gemspec',
+ 'vendor/librarian/.rspec',
+ 'vendor/librarian/.travis.yml',
+ 'vendor/librarian/CHANGELOG.md',
+ 'vendor/librarian/Gemfile',
+ 'vendor/librarian/MIT-LICENSE',
+ 'vendor/librarian/README.md',
+ 'vendor/librarian/Rakefile',
+ 'vendor/librarian/bin/librarian-chef',
+ 'vendor/librarian/bin/librarian-mock',
+ 'vendor/librarian/config/cucumber.yaml',
+ 'vendor/librarian/features/chef/cli/init.feature',
+ 'vendor/librarian/features/chef/cli/install.feature',
+ 'vendor/librarian/features/chef/cli/show.feature',
+ 'vendor/librarian/features/chef/cli/version.feature',
+ 'vendor/librarian/features/support/env.rb',
+ 'vendor/librarian/lib/librarian.rb',
+ 'vendor/librarian/lib/librarian/action.rb',
+ 'vendor/librarian/lib/librarian/action/base.rb',
+ 'vendor/librarian/lib/librarian/action/clean.rb',
+ 'vendor/librarian/lib/librarian/action/ensure.rb',
+ 'vendor/librarian/lib/librarian/action/install.rb',
+ 'vendor/librarian/lib/librarian/action/resolve.rb',
+ 'vendor/librarian/lib/librarian/action/update.rb',
+ 'vendor/librarian/lib/librarian/chef.rb',
+ 'vendor/librarian/lib/librarian/chef/cli.rb',
+ 'vendor/librarian/lib/librarian/chef/dsl.rb',
+ 'vendor/librarian/lib/librarian/chef/environment.rb',
+ 'vendor/librarian/lib/librarian/chef/extension.rb',
+ 'vendor/librarian/lib/librarian/chef/integration/knife.rb',
+ 'vendor/librarian/lib/librarian/chef/manifest_reader.rb',
+ 'vendor/librarian/lib/librarian/chef/source.rb',
+ 'vendor/librarian/lib/librarian/chef/source/git.rb',
+ 'vendor/librarian/lib/librarian/chef/source/local.rb',
+ 'vendor/librarian/lib/librarian/chef/source/path.rb',
+ 'vendor/librarian/lib/librarian/chef/source/site.rb',
+ 'vendor/librarian/lib/librarian/chef/templates/Cheffile',
+ 'vendor/librarian/lib/librarian/cli.rb',
+ 'vendor/librarian/lib/librarian/cli/manifest_presenter.rb',
+ 'vendor/librarian/lib/librarian/dependency.rb',
+ 'vendor/librarian/lib/librarian/dsl.rb',
+ 'vendor/librarian/lib/librarian/dsl/receiver.rb',
+ 'vendor/librarian/lib/librarian/dsl/target.rb',
+ 'vendor/librarian/lib/librarian/environment.rb',
+ 'vendor/librarian/lib/librarian/error.rb',
+ 'vendor/librarian/lib/librarian/helpers.rb',
+ 'vendor/librarian/lib/librarian/helpers/debug.rb',
+ 'vendor/librarian/lib/librarian/lockfile.rb',
+ 'vendor/librarian/lib/librarian/lockfile/compiler.rb',
+ 'vendor/librarian/lib/librarian/lockfile/parser.rb',
+ 'vendor/librarian/lib/librarian/manifest.rb',
+ 'vendor/librarian/lib/librarian/manifest_set.rb',
+ 'vendor/librarian/lib/librarian/mock.rb',
+ 'vendor/librarian/lib/librarian/mock/cli.rb',
+ 'vendor/librarian/lib/librarian/mock/dsl.rb',
+ 'vendor/librarian/lib/librarian/mock/environment.rb',
+ 'vendor/librarian/lib/librarian/mock/extension.rb',
+ 'vendor/librarian/lib/librarian/mock/source.rb',
+ 'vendor/librarian/lib/librarian/mock/source/mock.rb',
+ 'vendor/librarian/lib/librarian/mock/source/mock/registry.rb',
+ 'vendor/librarian/lib/librarian/resolution.rb',
+ 'vendor/librarian/lib/librarian/resolver.rb',
+ 'vendor/librarian/lib/librarian/resolver/implementation.rb',
+ 'vendor/librarian/lib/librarian/source.rb',
+ 'vendor/librarian/lib/librarian/source/git.rb',
+ 'vendor/librarian/lib/librarian/source/git/repository.rb',
+ 'vendor/librarian/lib/librarian/source/local.rb',
+ 'vendor/librarian/lib/librarian/source/path.rb',
+ 'vendor/librarian/lib/librarian/spec.rb',
+ 'vendor/librarian/lib/librarian/spec_change_set.rb',
+ 'vendor/librarian/lib/librarian/specfile.rb',
+ 'vendor/librarian/lib/librarian/support/abstract_method.rb',
+ 'vendor/librarian/lib/librarian/ui.rb',
+ 'vendor/librarian/lib/librarian/version.rb',
+ 'vendor/librarian/librarian.gemspec',
+ 'vendor/librarian/spec/functional/chef/source/git_spec.rb',
+ 'vendor/librarian/spec/functional/chef/source/site_spec.rb',
+ 'vendor/librarian/spec/unit/action/base_spec.rb',
+ 'vendor/librarian/spec/unit/action/clean_spec.rb',
+ 'vendor/librarian/spec/unit/action/ensure_spec.rb',
+ 'vendor/librarian/spec/unit/action/install_spec.rb',
+ 'vendor/librarian/spec/unit/dependency_spec.rb',
+ 'vendor/librarian/spec/unit/dsl_spec.rb',
+ 'vendor/librarian/spec/unit/environment_spec.rb',
+ 'vendor/librarian/spec/unit/lockfile/parser_spec.rb',
+ 'vendor/librarian/spec/unit/lockfile_spec.rb',
+ 'vendor/librarian/spec/unit/manifest_set_spec.rb',
+ 'vendor/librarian/spec/unit/manifest_spec.rb',
+ 'vendor/librarian/spec/unit/mock/source/mock_spec.rb',
+ 'vendor/librarian/spec/unit/resolver_spec.rb',
+ 'vendor/librarian/spec/unit/source/git_spec.rb',
+ 'vendor/librarian/spec/unit/spec_change_set_spec.rb',
]
s.executables = ['librarian-puppet']
- s.add_dependency 'librarian'
+ s.add_dependency "thor", "~> 0.15"
end

0 comments on commit 694c350

Please sign in to comment.