masamune 0.11.8 → 0.11.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de2a4fd6bb5a2135bcee2683501ac65a90f91ec9
4
- data.tar.gz: 9d2ad4ecc076e523b47486a9d03ff4d2089f98f6
3
+ metadata.gz: e71d5026f78a0babee52533490fe3d79da306451
4
+ data.tar.gz: 4e78ab8efb0c9697984707dd4f242b061a50b858
5
5
  SHA512:
6
- metadata.gz: 5d4f7a56bb6ad4fbff0f0203474a79285e056e9562a5c13ca29c15932e8698c68c0a741078a6604d4d91bbcbe863cf775fbb01ae75b4f094b11b76145994c107
7
- data.tar.gz: abe67971495a36ec39ff4da7ffe8e45185e45574390861640d0d566a8cbffb1f7c9507ddaa402eb7cf87077c08dadff8fb49e2c647bf377ad96c20beacef2ef1
6
+ metadata.gz: 16462d0f049ee2caac1f540dbe2266b268b58f601762edb46d69d7b3db676ff9af173d212bf20c3526f4c40307bed4b9d02ccce4c01adde2c5891e73c421c581
7
+ data.tar.gz: 1f7fc256a7561808e36390f0bad66c6add14f89b71d36d3ea91e8650ed5f5c719b7cfdc851991e4f4c6676c7206b6e513a842a83bf2b797085978cc00d2f799b
data/lib/masamune.rb CHANGED
@@ -43,13 +43,4 @@ module Masamune
43
43
 
44
44
  extend self
45
45
  extend Masamune::HasEnvironment
46
-
47
- def load(config_file, &block)
48
- Masamune::Environment.new.tap do |env|
49
- env.configure do |config|
50
- config.load(config_file)
51
- end
52
- env.catalog.instance_eval &block
53
- end
54
- end
55
46
  end
@@ -314,7 +314,7 @@ module Masamune
314
314
  check_immutable_path!(dir)
315
315
  case type(dir)
316
316
  when :hdfs
317
- hadoop_fs('-rmr', dir)
317
+ hadoop_fs('-rm', '-r', dir)
318
318
  when :s3
319
319
  s3cmd('del', '--recursive', s3b(dir, dir: true))
320
320
  s3cmd('del', '--recursive', s3b("#{dir}_$folder$"))
data/lib/masamune/thor.rb CHANGED
@@ -149,7 +149,7 @@ module Masamune
149
149
  end
150
150
  end
151
151
 
152
- after_initialize_invoke(options.symbolize_keys)
152
+ after_initialize_invoke(options.to_hash.symbolize_keys)
153
153
  end
154
154
 
155
155
  no_tasks do
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Masamune
24
- VERSION = '0.11.8'
24
+ VERSION = '0.11.9'
25
25
  end
@@ -994,7 +994,7 @@ shared_examples_for 'Filesystem' do
994
994
  context 'hdfs dir' do
995
995
  it do
996
996
  expect(filesystem).to receive(:root_path?).once.and_return(false)
997
- expect(filesystem).to receive(:hadoop_fs).with('-rmr', 'file://' + old_dir)
997
+ expect(filesystem).to receive(:hadoop_fs).with('-rm', '-r', 'file://' + old_dir)
998
998
  instance.remove_dir('file://' + old_dir)
999
999
  end
1000
1000
  end
@@ -1242,7 +1242,7 @@ shared_examples_for 'Filesystem' do
1242
1242
  context 'hdfs dir to local dir' do
1243
1243
  it do
1244
1244
  expect(filesystem).to receive(:hadoop_fs).with('-copyToLocal', 'file://' + old_dir, 'file://' + new_dir)
1245
- expect(filesystem).to receive(:hadoop_fs).with('-rmr', 'file://' + old_dir)
1245
+ expect(filesystem).to receive(:hadoop_fs).with('-rm', '-r', 'file://' + old_dir)
1246
1246
  instance.move_dir('file://' + old_dir, new_dir)
1247
1247
  end
1248
1248
  end
@@ -1250,7 +1250,7 @@ shared_examples_for 'Filesystem' do
1250
1250
  context 'hdfs dir to s3 dir' do
1251
1251
  it do
1252
1252
  expect(filesystem).to receive(:hadoop_fs).with('-cp', 'file://' + old_dir, 's3n://bucket/new_dir/')
1253
- expect(filesystem).to receive(:hadoop_fs).with('-rmr', 'file://' + old_dir)
1253
+ expect(filesystem).to receive(:hadoop_fs).with('-rm', '-r', 'file://' + old_dir)
1254
1254
  instance.move_dir('file://' + old_dir, 's3://bucket/new_dir')
1255
1255
  end
1256
1256
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: masamune
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.8
4
+ version: 0.11.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Andrews
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor