Sha256: a95e36f19c92dd18abde37fe626c7e067444dd2c25e8e8b8789a19df26b179a6
Contents?: true
Size: 858 Bytes
Versions: 17
Compression:
Stored size: 858 Bytes
Contents
Then %r{^remote folder "(.*)" is created} do |folder| FileUtils.chdir @remote_folder do File.exists?(folder).should be_true end end Then %r{^remote file "(.*)" (is|is not) created} do |file, is| FileUtils.chdir @remote_folder do File.exists?(file).should(is == 'is' ? be_true : be_false) end end Given /^ChocTop config is configured for local rsync$/ do in_project_folder do append_to_file "Rakefile", <<-RUBY.gsub(/^ /, '') $choctop.host = "" $choctop.remote_dir = #{@remote_folder.inspect} RUBY end end Given /^ChocTop config is configured for remote Sparkle$/ do in_project_folder do append_to_file "Rakefile", <<-RUBY.gsub(/^ /, '') $choctop.host = "mocra.com" $choctop.base_url = "http://mocra.com/sample_app" $choctop.remote_dir = "/opt/apps/mocra/downloads/sample_app" RUBY end end
Version data entries
17 entries across 17 versions & 2 rubygems