Module: Bimble
- Defined in:
- lib/bimble.rb,
lib/bimble/bundler.rb,
lib/bimble/factory.rb,
lib/bimble/version.rb
Defined Under Namespace
Modules: GitStrategy, Helpers
Constant Summary
collapse
- VERSION =
"1.0.3"
Class Method Summary
collapse
Class Method Details
.bundle_update ⇒ Object
3
4
5
6
7
8
9
|
# File 'lib/bimble/bundler.rb', line 3
def self.bundle_update
if File.exists?("Gemfile")
Bundler.with_clean_env do
puts `sh -c "BUNDLE_IGNORE_CONFIG=true bundle update"`
end
end
end
|
.create(strategy, options) ⇒ Object
3
4
5
6
7
8
9
10
|
# File 'lib/bimble/factory.rb', line 3
def self.create(strategy, options)
case strategy
when :clone
Bimble::GitStrategy::Clone.new(options[:git_url], options[:github_oauth_token])
when :github_api
Bimble::GitStrategy::GithubApi.new(options[:git_url], options[:github_oauth_token])
end
end
|