Sha256: f770745a502603bf6f2f98fb2924dd574f76a383d3bbe0c890cc91d2a10c7f3d

Contents?: true

Size: 426 Bytes

Versions: 13

Compression:

Stored size: 426 Bytes

Contents

module DryRun
	class DryrunUtils

		def self.execute(command)
			is_success = system command
		      unless is_success
		        puts "\n\n======================================================\n\n"
		        puts " Something went wrong while executing this:".red
		        puts "  $ #{command}\n".yellow
		        puts "======================================================\n\n"
		        exit 1
		      end	
		end
	end 
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dryrun-0.6.5 lib/dryrun/dryrun_utils.rb
dryrun-0.6.4 lib/dryrun/dryrun_utils.rb
dryrun-0.6.3 lib/dryrun/dryrun_utils.rb
dryrun-0.6.2 lib/dryrun/dryrun_utils.rb
dryrun-0.6.1 lib/dryrun/dryrun_utils.rb
dryrun-0.5.9 lib/dryrun/dryrun_utils.rb
dryrun-0.5.8 lib/dryrun/dryrun_utils.rb
dryrun-0.5.7 lib/dryrun/dryrun_utils.rb
dryrun-0.5.6 lib/dryrun/dryrun_utils.rb
dryrun-0.5.5 lib/dryrun/dryrun_utils.rb
dryrun-0.5.4 lib/dryrun/dryrun_utils.rb
dryrun-0.5.3 lib/dryrun/dryrun_utils.rb
dryrun-0.5.2 lib/dryrun/dryrun_utils.rb