onceover 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24a0daba1f95f2baf8a8945bab9b1fa801d71d35
4
- data.tar.gz: 23052bb474ab460391981a324a4541a0fde4ec38
3
+ metadata.gz: 3dde3f44a6c2f390ce1823048004a8c856f0d0b0
4
+ data.tar.gz: b2ad273d258f3693ad117309829b32342155fd60
5
5
  SHA512:
6
- metadata.gz: 05659f5eb12f3f93154c59514e34e0bc5cc4e5be91a72473252cc62fa81caaf22dfbf2f364ef0feeab04939b55e861c6d5d5b7db175d4bfc945d825031d39431
7
- data.tar.gz: 6b1d54ab5020abf811182a090aceedd323196ae0913bb17f8d13858255da13f715245afef5dc8931654ce2898935198431f7cad33b568ae423062736bdcb8db2
6
+ metadata.gz: 0cfeef499c53e7970c70a1d2216ac41de706b947c9f16737bd73b9d08d30c88230c611ed18a04281e17f67860c0516c3df944de962d4e5385f290beec6fe05da
7
+ data.tar.gz: be2f6006c85476c02288412a724883dcf3101d83b550413b28b66862faec2081387d63192222f0d9c1ebe0fd41016e0635755722853c1def1f5b5c7859f7c24d
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  *The gateway drug to automated infrastructure testing with Puppet*
4
4
 
5
+ Onceover is a tool to automatically run basic tests on an entire Puppet controlrepo. It includes automatic parsing the `Puppetfile`, `environment.conf` and others in order to run both basic compilation tests and also full acceptance tests!
6
+
5
7
  ## Table of Contents
6
8
 
7
9
  - [Overview](#overview)
@@ -45,6 +47,9 @@ Run your spec tests!
45
47
  gem 'onceover'
46
48
  ```
47
49
 
50
+ Here is an example using Bundler:
51
+
52
+
48
53
  ## Overview
49
54
 
50
55
  This gem provides a toolset for testing Puppet Controlrepos (Repos used with r10k). The main purpose of this project is to provide a set of tools to help smooth out the process of setting up and running both spec and acceptance tests for a controlrepo. Due to the fact that controlrepos are fairly standardised in nature it seemed ridiculous that you would need to set up the same testing framework that we would normally use within a module for a controlrepo. This is because at this level we are normally just running very basic tests that cover a lot of code. It would also mean that we would need to essentially duplicated our `Puppetfile` into a `.fixtures.yml` file, along with a few other things.
data/controlrepo.gemspec CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "onceover"
6
- s.version = "3.0.1"
6
+ s.version = "3.0.2"
7
7
  s.authors = ["Dylan Ratcliffe"]
8
8
  s.email = ["dylan.ratcliffe@puppet.com"]
9
9
  s.homepage = "https://github.com/dylanratcliffe/onceover"
@@ -139,7 +139,7 @@ class Onceover
139
139
  temp_controlrepo = Dir.mktmpdir('controlrepo')
140
140
  FileUtils.cp_r(Dir["#{repo.root}/*"], "#{temp_controlrepo}")
141
141
  FileUtils.mkdir_p("#{repo.tempdir}/#{repo.environmentpath}/production")
142
- FileUtils.mv(Dir["#{temp_controlrepo}/*"], "#{repo.tempdir}/#{repo.environmentpath}/production",:force => true)
142
+ FileUtils.cp_r(Dir["#{temp_controlrepo}/*"], "#{repo.tempdir}/#{repo.environmentpath}/production")
143
143
  FileUtils.rm_rf(temp_controlrepo)
144
144
 
145
145
  # Pull the trigger! If it's not already been pulled
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-28 00:00:00.000000000 Z
11
+ date: 2016-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake