test/extra/deployers/test_fog.rb in nanoc-4.0.2 vs test/extra/deployers/test_fog.rb in nanoc-4.1.0a1

- old
+ new

@@ -37,12 +37,14 @@ { provider: 'aws', # FIXME: bucket is necessary for deployer but fog doesn't like it bucket_name: 'doesntmatter', aws_access_key_id: 'meh', - aws_secret_access_key: 'dontcare' }, - dry_run: true) + aws_secret_access_key: 'dontcare', + }, + dry_run: true, + ) # Create site FileUtils.mkdir_p('output') File.open('output/meow', 'w') { |io| io.write 'I am a cat!' } File.open('output/bark', 'w') { |io| io.write 'I am a dog!' } @@ -65,16 +67,18 @@ # Create deployer fog = Nanoc::Extra::Deployers::Fog.new( 'output/', { provider: 'aws', - cdn_id: 'id-cdn', + cdn_id: 'id-cdn', # FIXME: bucket is necessary for deployer but fog doesn't like it bucket_name: 'doesntmatter', aws_access_key_id: 'meh', - aws_secret_access_key: 'dontcare' }, - dry_run: true) + aws_secret_access_key: 'dontcare', + }, + dry_run: true, + ) # Create site FileUtils.mkdir_p('output') File.open('output/meow', 'w') { |io| io.write 'I am a cat!' } File.open('output/bark', 'w') { |io| io.write 'I am a dog!' } @@ -97,10 +101,12 @@ fog = Nanoc::Extra::Deployers::Fog.new( 'output/', { bucket: 'mybucket', provider: 'local', - local_root: 'mylocalcloud' }) + local_root: 'mylocalcloud', + }, + ) # Setup fake local cloud FileUtils.mkdir_p('mylocalcloud/mybucket') File.open('mylocalcloud/mybucket/etc', 'w') { |io| io.write('meh-etc') } File.open('mylocalcloud/mybucket/meow', 'w') { |io| io.write('meh-meow') }