simplels_gem 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/bin/simple-ls +8 -0
- data/lib/simple-ls-manpage +18 -0
- data/lib/simplels_gem.rb +19 -0
- metadata +46 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: bc249cabee9cd2a42ce4abec8107ad62650f659d
|
|
4
|
+
data.tar.gz: e0386db697abb4d2a8739239da352bca3dbb81be
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d82a4df85d3a9c005b3aa51325d196a28611d85699e3cdd1572112b6890474c9ec4d4d55b025dbf844f1b247535130351c7f0cbd15d88129cb209cc08fa2bf3a
|
|
7
|
+
data.tar.gz: 6d584e2b501e8fbe029c0fbde7b753c6fa7ed05fedfa9015bf7f4fc2c8eab75aa1d5f3c06ff0d928c5a6a1b5800cab472cc88e4225e63eb68fb83435ecdd1122
|
data/bin/simple-ls
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
npage for simple-ls.
|
|
2
|
+
.\" Contact gaurav@codebrahma.com to correct errors or typos.
|
|
3
|
+
.TH man 8 "16 December 2014" "1.0" "simple-ls man page"
|
|
4
|
+
.SH NAME
|
|
5
|
+
simple-ls \-
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
simple-ls [path]
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
simple-ls is high level shell program to view all the files and folders in the mentioned directory path
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
You can specify the path of the required directory.
|
|
12
|
+
If no paths is specified, it will list out the files and folders in the current directory
|
|
13
|
+
.SH SEE ALSO
|
|
14
|
+
useradd(8), passwd(5), nuseradd.debian(8)
|
|
15
|
+
.SH BUGS
|
|
16
|
+
No known bugs.
|
|
17
|
+
.SH AUTHOR
|
|
18
|
+
Gaurav Sarma (gaurav@codebrahma.com)
|
data/lib/simplels_gem.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module SimplelsGem
|
|
2
|
+
class ListFiles
|
|
3
|
+
def self.ls(path = ".")
|
|
4
|
+
begin
|
|
5
|
+
Dir.entries(path).each do |i|
|
|
6
|
+
next if i.eql?('.') || i.eql?("..")
|
|
7
|
+
puts i
|
|
8
|
+
end
|
|
9
|
+
rescue Exception => e
|
|
10
|
+
puts "Check your path.. Cheers"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def self.manpage
|
|
15
|
+
path = File.dirname(__FILE__)
|
|
16
|
+
system(" man #{path}/simple-ls-manpage" )
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: simplels_gem
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Gaurav
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2014-12-16 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description:
|
|
14
|
+
email:
|
|
15
|
+
executables:
|
|
16
|
+
- simple-ls
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- bin/simple-ls
|
|
21
|
+
- lib/simple-ls-manpage
|
|
22
|
+
- lib/simplels_gem.rb
|
|
23
|
+
homepage:
|
|
24
|
+
licenses: []
|
|
25
|
+
metadata: {}
|
|
26
|
+
post_install_message:
|
|
27
|
+
rdoc_options: []
|
|
28
|
+
require_paths:
|
|
29
|
+
- lib
|
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
requirements: []
|
|
41
|
+
rubyforge_project:
|
|
42
|
+
rubygems_version: 2.4.5
|
|
43
|
+
signing_key:
|
|
44
|
+
specification_version: 4
|
|
45
|
+
summary: list all the files in a particular folder
|
|
46
|
+
test_files: []
|