Add the missing shebangs and fix the wrong ones for rpmlint to stop complaining loudly
This commit is contained in:
parent
e962b9553b
commit
09f892023c
85 changed files with 85 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'abs function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'any2array function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'base64 function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'bool2num function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'capitalize function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'chomp function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'chop function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'concat function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'count function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'deep_merge function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'defined_with_params function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'delete_at function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'delete function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'delete_undef_values function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'num2bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'parsejson function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'parseyaml function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'pick_default function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'pick function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'prefix function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'range function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'reject function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'reverse function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'rstrip function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'shuffle function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'size function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'sort function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'squeeze function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'str2bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'str2saltedsha512 function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'strftime function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'strip function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'suffix function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'swapcase function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'time function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'to_bytes function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'type function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'union function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'unique function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'upcase function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'uriescape function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_absolute_path function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_array function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_augeas function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_cmd function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_hash function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_ipv4_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_ipv6_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_re function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_slength function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'validate_string function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'values_at function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'values function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper_acceptance'
|
||||
require 'puppet'
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
require 'puppet_spec/compiler'
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
require 'rspec-puppet'
|
||||
require 'puppet_spec/compiler'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
require 'rspec-puppet'
|
||||
require 'puppet_spec/compiler'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
module PuppetSpec::Compiler
|
||||
def compile_to_catalog(string, node = Puppet::Node.new('foonode'))
|
||||
Puppet[:code] = string
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
# This just makes some nice things available at global scope, and for setup of
|
||||
# tests to use a real fake database, rather than a fake stubs-that-don't-work
|
||||
# version of the same. Fun times.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'fileutils'
|
||||
require 'tempfile'
|
||||
require 'tmpdir'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
module PuppetSpec::Fixtures
|
||||
def fixtures(*rest)
|
||||
File.join(PuppetSpec::FIXTURE_DIR, *rest)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'stringio'
|
||||
|
||||
########################################################################
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
module PuppetSpec::Modules
|
||||
class << self
|
||||
def create(name, dir, options = {})
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
module PuppetSpec::Pops
|
||||
extend RSpec::Matchers::DSL
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
|
||||
module PuppetSpec::Scope
|
||||
# Initialize a new scope suitable for testing.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
module PuppetSpec::Settings
|
||||
|
||||
# It would probably be preferable to refactor defaults.rb such that the real definitions of
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
# Support code for running stuff with warnings disabled.
|
||||
module Kernel
|
||||
def with_verbose_disabled
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'rspec'
|
||||
|
||||
class Object
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
# Some monkey-patching to allow us to test private methods.
|
||||
class Class
|
||||
def publicize_methods(*methods)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
dir = File.expand_path(File.dirname(__FILE__))
|
||||
$LOAD_PATH.unshift File.join(dir, 'lib')
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'beaker-rspec'
|
||||
|
||||
UNSUPPORTED_PLATFORMS = []
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
require 'facter/facter_dot_d'
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
require 'facter/root_home'
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
require 'facter/util/puppet_settings'
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
|
||||
describe Puppet::Parser::Functions.function(:validate_absolute_path) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
|
||||
describe Puppet::Parser::Functions.function(:validate_augeas), :if => Puppet.features.augeas? do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#! /usr/bin/env/ruby -S rspec
|
||||
#! /usr/bin/env ruby -S rspec
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
|
||||
TESTEXE = File.exists?('/usr/bin/test') ? '/usr/bin/test' : '/bin/test'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#! /usr/bin/env/ruby -S rspec
|
||||
#! /usr/bin/env ruby -S rspec
|
||||
|
||||
require "spec_helper"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#! /usr/bin/env/ruby -S rspec
|
||||
#! /usr/bin/env ruby -S rspec
|
||||
|
||||
require "spec_helper"
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
|
||||
describe Puppet::Parser::Functions.function(:validate_re) do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
require 'tempfile'
|
||||
provider_class = Puppet::Type.type(:file_line).provider(:ruby)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /usr/bin/env ruby -S rspec
|
||||
require 'spec_helper'
|
||||
require 'tempfile'
|
||||
describe Puppet::Type.type(:file_line) do
|
||||
|
|
Loading…
Reference in a new issue