ro_thor 4.6.5 → 4.6.7

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
  SHA256:
3
- metadata.gz: cbeb5aef6502717a385722f30e59461061ac1d95d436ccf65c688310d7e244ed
4
- data.tar.gz: 65414774e137c2b63f8e9c2784fe8f5820b6b0187b54fcd9d7b2dca45743eb4d
3
+ metadata.gz: 739ec510fe387cab1f522aa6ce897000ecd62f189b29b1ca947dc94a88664a06
4
+ data.tar.gz: dde5ecc67ee15a9c6d8f44719149bf53c9880b86920a8d6dec35efb880ed3ca0
5
5
  SHA512:
6
- metadata.gz: 83e55c0ded31663342d322067dd74311b61a9d7e21d7950af71970e61ee4641e93ea05f3791b5bb5d94c245a1f7437a44ff23d0dc9a14c1edaa98225d487985d
7
- data.tar.gz: 0764d49c5abf5e442ebe7be280dd116609d525d861c6c1bd61e61fb549386b97afe0d5627a238c445e55b93b60d17b75ae562e7ce13e53cfde36b1b4b810be95
6
+ metadata.gz: 31c7c4e83600a3a05864fdc8ade5419b0f79323f82fdeebf1da22f6c5e0eee67099b7d89867837421a11dbbb268060eb20f4ce98a4b6416c2bfe1fee14bc46e5
7
+ data.tar.gz: 4642ce36d68307d9441dfc9ba4edc317aa86226985d289439b589ee3468dd17a0473ff8c702741c27c61c574ca0d02b502e17c9e6912923d39a3df6bb4015c39
@@ -13,6 +13,10 @@ class RoThor
13
13
  binwrite(to, binread(from))
14
14
  end
15
15
 
16
+ def ls(path)
17
+ Dir.glob("#{path}/*")
18
+ end
19
+
16
20
  def abs(p, *args, &blk)
17
21
  if p.match(%r{^~})
18
22
  p.gsub(%r{^~}, ENV["HOME"])
@@ -0,0 +1,8 @@
1
+ require 'rails_helper'
2
+
3
+ describe 'RoFile' do
4
+ it "ls" do
5
+ ps = RoThor::RoFile.ls(__dir__)
6
+ asr ps.size > 0
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ro_thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.5
4
+ version: 4.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -114,6 +114,7 @@ files:
114
114
  - spec/lib/core_ext/array_spec.rb
115
115
  - spec/lib/ro_cmd/thor/dp_spec.rb
116
116
  - spec/lib/ro_thor/ro_err_spec.rb
117
+ - spec/lib/ro_thor/ro_file_spec.rb
117
118
  - spec/lib/ro_thor/ssh_spec.rb
118
119
  - spec/lib/ro_thor_spec.rb
119
120
  - spec/mysql/my.cnf
@@ -145,6 +146,7 @@ test_files:
145
146
  - spec/lib/ro_thor_spec.rb
146
147
  - spec/lib/ro_cmd/thor/dp_spec.rb
147
148
  - spec/lib/ro_thor/ssh_spec.rb
149
+ - spec/lib/ro_thor/ro_file_spec.rb
148
150
  - spec/lib/ro_thor/ro_err_spec.rb
149
151
  - spec/lib/core_ext/array_spec.rb
150
152
  - spec/rails_helper.rb