added rails api
Showing
with
4741 additions
and
3 deletions
modules/rails_api/Gemfile
0 → 100644
source 'https://rubygems.org' | ||
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 3.3'] | ||
gem 'puppet', puppetversion | ||
gem 'puppetlabs_spec_helper', '>= 0.1.0' | ||
gem 'puppet-lint', '>= 0.3.2' | ||
gem 'facter', '>= 1.7.0' |
modules/rails_api/README.md
0 → 100644
modules/rails_api/Rakefile
0 → 100644
modules/rails_api/manifests/init.pp
0 → 100644
modules/rails_api/metadata.json
0 → 100644
modules/rails_api/spec/classes/init_spec.rb
0 → 100644
modules/rails_api/spec/spec_helper.rb
0 → 100644
modules/rails_api/tests/init.pp
0 → 100644
modules/vcsrepo/CHANGELOG.md
0 → 100644
modules/vcsrepo/CONTRIBUTING.md
0 → 100644
modules/vcsrepo/Gemfile
0 → 100644
#This file is generated by ModuleSync, do not edit. | ||
source ENV['GEM_SOURCE'] || "https://rubygems.org" | ||
# Determines what type of gem is requested based on place_or_version. | ||
def gem_type(place_or_version) | ||
if place_or_version =~ /^git:/ | ||
:git | ||
elsif place_or_version =~ /^file:/ | ||
:file | ||
else | ||
:gem | ||
end | ||
end | ||
# Find a location or specific version for a gem. place_or_version can be a | ||
# version, which is most often used. It can also be git, which is specified as | ||
# `git://somewhere.git#branch`. You can also use a file source location, which | ||
# is specified as `file://some/location/on/disk`. | ||
def location_for(place_or_version, fake_version = nil) | ||
if place_or_version =~ /^(git[:@][^#]*)#(.*)/ | ||
[fake_version, { :git => $1, :branch => $2, :require => false }].compact | ||
elsif place_or_version =~ /^file:\/\/(.*)/ | ||
['>= 0', { :path => File.expand_path($1), :require => false }] | ||
else | ||
[place_or_version, { :require => false }] | ||
end | ||
end | ||
# Used for gem conditionals | ||
supports_windows = false | ||
ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments | ||
minor_version = "#{ruby_version_segments[0]}.#{ruby_version_segments[1]}" | ||
group :development do | ||
gem "puppet-module-posix-default-r#{minor_version}", :require => false, :platforms => "ruby" | ||
gem "puppet-module-win-default-r#{minor_version}", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"] | ||
gem "puppet-module-posix-dev-r#{minor_version}", :require => false, :platforms => "ruby" | ||
gem "puppet-module-win-dev-r#{minor_version}", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"] | ||
gem "json_pure", '<= 2.0.1', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0') | ||
gem "fast_gettext", '1.1.0', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0') | ||
gem "fast_gettext", :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0') | ||
end | ||
group :system_tests do | ||
gem "puppet-module-posix-system-r#{minor_version}", :require => false, :platforms => "ruby" | ||
gem "puppet-module-win-system-r#{minor_version}", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"] | ||
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '>= 3') | ||
gem "beaker-pe", :require => false | ||
gem "beaker-rspec", *location_for(ENV['BEAKER_RSPEC_VERSION']) | ||
gem "beaker-hostgenerator", *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION']) | ||
gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1') | ||
end | ||
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION']) | ||
# Only explicitly specify Facter/Hiera if a version has been specified. | ||
# Otherwise it can lead to strange bundler behavior. If you are seeing weird | ||
# gem resolution behavior, try setting `DEBUG_RESOLVER` environment variable | ||
# to `1` and then run bundle install. | ||
gem 'facter', *location_for(ENV['FACTER_GEM_VERSION']) if ENV['FACTER_GEM_VERSION'] | ||
gem 'hiera', *location_for(ENV['HIERA_GEM_VERSION']) if ENV['HIERA_GEM_VERSION'] | ||
# Evaluate Gemfile.local if it exists | ||
if File.exists? "#{__FILE__}.local" | ||
eval(File.read("#{__FILE__}.local"), binding) | ||
end | ||
# Evaluate ~/.gemfile if it exists | ||
if File.exists?(File.join(Dir.home, '.gemfile')) | ||
eval(File.read(File.join(Dir.home, '.gemfile')), binding) | ||
end | ||
# vim:ft=ruby |
modules/vcsrepo/LICENSE
0 → 100644
This diff is collapsed.
Click to expand it.
modules/vcsrepo/MAINTAINERS.md
0 → 100644
modules/vcsrepo/NOTICE
0 → 100644
modules/vcsrepo/README.markdown
0 → 100644
This diff is collapsed.
Click to expand it.
modules/vcsrepo/Rakefile
0 → 100755
modules/vcsrepo/checksums.json
0 → 100644
This diff is collapsed.
Click to expand it.
modules/vcsrepo/examples/bzr/branch.pp
0 → 100644
modules/vcsrepo/examples/bzr/init_repo.pp
0 → 100644
modules/vcsrepo/examples/cvs/local.pp
0 → 100644
modules/vcsrepo/examples/cvs/remote.pp
0 → 100644
modules/vcsrepo/examples/git/bare_init.pp
0 → 100644
modules/vcsrepo/examples/git/clone.pp
0 → 100644
modules/vcsrepo/examples/hg/clone.pp
0 → 100644
modules/vcsrepo/examples/hg/init_repo.pp
0 → 100644
modules/vcsrepo/examples/p4/create_client.pp
0 → 100644
modules/vcsrepo/examples/p4/delete_client.pp
0 → 100644
modules/vcsrepo/examples/p4/latest_client.pp
0 → 100644
modules/vcsrepo/examples/p4/sync_client.pp
0 → 100644
modules/vcsrepo/examples/svn/checkout.pp
0 → 100644
modules/vcsrepo/examples/svn/server.pp
0 → 100644
This diff is collapsed.
Click to expand it.
modules/vcsrepo/lib/puppet/type/vcsrepo.rb
0 → 100644
modules/vcsrepo/locales/config.yaml
0 → 100644
modules/vcsrepo/metadata.json
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
modules/vcsrepo/spec/acceptance/svn_spec.rb
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
modules/vcsrepo/spec/fixtures/hg_parents.txt
0 → 100644
This diff is collapsed.
Click to expand it.
modules/vcsrepo/spec/fixtures/hg_tags.txt
0 → 100644
This diff is collapsed.
Click to expand it.
modules/vcsrepo/spec/fixtures/svn_info.txt
0 → 100644
This diff is collapsed.
Click to expand it.
modules/vcsrepo/spec/spec_helper.rb
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
modules/vcsrepo/spec/spec_helper_local.rb
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment