Sha256: 18f934d1e1c61c9c2a92a9a95ca886f7180a990dae44603f3525aad93c8b00cd
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
# -*- encoding: utf-8 -*- # # Author:: Fletcher Nichol (<fnichol@nichol.ca>) # # Copyright (C) 2013, Fletcher Nichol # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'busser/runner_plugin' # Dummy runner plugin for Busser. # # @author Fletcher Nichol <fnichol@nichol.ca> # class Busser::RunnerPlugin::Dummy < Busser::RunnerPlugin::Base postinstall do empty_directory("dummy") create_file("dummy/foobar.txt", "The Dummy Driver.") end def test banner "[dummy] Running" if File.exists?(File.join(suite_path("dummy"), "foobar.txt")) info "[dummy] The postinstall script has been called" else warn "[dummy] The postinstall script was not called" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
busser-0.2.0 | lib/busser/runner_plugin/dummy.rb |