storazzo 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b20663eda1cb6d0a43c4391e3c50a111802c4ddbdfdfe28c0f99fd3a12af2d9f
4
- data.tar.gz: 7efd0bf78085f676796c91f24fece24621e18477ca67d0b002536b6c13492fe7
3
+ metadata.gz: b4f4672b3d74c331f1b352f0222a2bb53d8be4ee0903703af69ec7cf4c41a714
4
+ data.tar.gz: c8438ba1c39183217e9e4570dd5013e5ae19389836b054fbf12824e7bc25a174
5
5
  SHA512:
6
- metadata.gz: 17baa0e81ee526a21bf5a4129b66d51f04db26cecb3215288fd410468a0d8212aba2f22b1163a9be89f20d4e79791e778f74f7a7d965fcbff0c67f1f7054c43e
7
- data.tar.gz: d2d208632520d5f65bf9a0292f336271eaef1c1b88ee605222f1970d3127e47cb1229add34d310bed8af74d536a1a520b8c3dc290dc24be46037a9e740ab50ce
6
+ metadata.gz: 34f3068aff14301f3931d6098d3cbdbdcee743ad0311858117341b55b7456a27cf835490cc1bf8e6082ce489807298fa6cd115f06149852ed1af76bdc5f9538b
7
+ data.tar.gz: dc9f78da4db98ee8ddf4a02bab936cb45a5b617745ca4761f80cb8d6e269f4846e07e58059875b27fa0d6443997d965a3dd0a57a9174ba7821dae01520adb42b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/bin/ricdisk-magic CHANGED
@@ -10,11 +10,14 @@ require 'yaml'
10
10
  require 'socket'
11
11
  require 'optparse' # http://ruby.about.com/od/advancedruby/a/optionparser.htm
12
12
 
13
+ include Storazzo
14
+ include Storazzo::Colors
15
+
13
16
  #require_relative '../lib/storazzo'
14
17
 
15
18
  puts "First I need to figure out how to bring in all the libraries in here.."
16
- puts Storazzo::Main.hi(ARGV[0])
17
- exit(0)
19
+ puts Storazzo::Main.hi(ARGV.join '::')
20
+ #exit(0)
18
21
  ############# ############# ############# ############# ############# ############# ############# #############
19
22
 
20
23
 
@@ -29,10 +32,11 @@ if RUBY_VERSION.split('.')[0] == 1
29
32
  exit 2020
30
33
  end
31
34
 
32
- $PROG_VER = '0.3'
33
- $DEBUG = false
35
+ $PROG_VER = '0.4'
36
+ $DEBUG = true
34
37
 
35
38
  HISTORY = <<-BIG_LONG_MULTILINE
39
+ 2022-07-13 v0.4 Now that library has stabilized this kind of works! I can just push gem, update amd include here and work quite well :)
36
40
  2022-07-11 v0.3 Ported from private files in GIC into storazzo (open source on gitHub) and cleaned up italian and libs
37
41
  2022-07-DD v0.2 Some private stuff on GIC
38
42
  BIG_LONG_MULTILINE
@@ -115,7 +119,8 @@ def real_program
115
119
  puts "Description: '''#{white $myconf[:description] }'''"
116
120
 
117
121
 
118
- config = RicDiskConfig.auto_sbrodola(ARGV)
122
+ config = RicDiskConfig.load # auto_sbrodola(ARGV)
123
+ config.iterate_through_file_list_for_disks(ARGV)
119
124
 
120
125
  # if ARGV == [] # empty -> ALL
121
126
  # dirs = RicDisk.find_active_dirs()
@@ -9,7 +9,8 @@ module Storazzo
9
9
 
10
10
  @@default_config_location = "~/.storazzo.yaml"
11
11
  attr_accessor :config, :config_file
12
-
12
+
13
+ public
13
14
  def load(config_path=nil, opts={})
14
15
  verbose = opts.fetch :verbose, false
15
16
 
@@ -63,7 +64,7 @@ module Storazzo
63
64
  Storazzo.root + "/etc/storazzo_config.sample.yaml"
64
65
  end
65
66
 
66
- # UGLY CODE, copipasted from binary for ARGV
67
+ # UGLY CODE, copipasted from binary for ARGV, ex autosbrodola
67
68
  def iterate_through_file_list_for_disks(files_list=[])
68
69
  if files_list == [] # or files_list.nil? # empty -> ALL
69
70
  deb "iterate_through_file_list_for_disks(): no args provided"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storazzo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Riccardo Carlesso