Sha256: 919ddff63c1aa926c09d34003036780f0227314dc73b1cd95091c426c1a63ee9

Contents?: true

Size: 682 Bytes

Versions: 6

Compression:

Stored size: 682 Bytes

Contents

ENV['TEST'] = '1'
# Ensures aws api never called. Fixture home folder does not contain ~/.aws/credentails
ENV['HOME'] = "spec/fixtures/home"

require "pp"
require "byebug"

root = File.expand_path('../../', __FILE__)
require "#{root}/lib/ufo"

module Helpers
  def execute(cmd)
    puts "Running: #{cmd.colorize(:magenta)}" if ENV['DEBUG']
    out = `#{cmd}`
    puts out if ENV['DEBUG']
    out
  end

  def create_starter_project_fixture
    FileUtils.rm_rf("spec/fixtures/hi")
    execute("bin/ufo init --cluster prod --env prod --image tongueroo/hi --project-root spec/fixtures/hi --app hi")
  end
end

RSpec.configure do |c|
  c.include Helpers

  c.before(:each) do
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ufo-2.0.0 spec/spec_helper.rb
ufo-1.7.1 spec/spec_helper.rb
ufo-1.7.0 spec/spec_helper.rb
ufo-1.6.2 spec/spec_helper.rb
ufo-1.6.1 spec/spec_helper.rb
ufo-1.6.0 spec/spec_helper.rb