bashman 0.1.0 → 0.1.2

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: 4406bc629855c0f569157e3d2e64541d461d9578199624f1c2fb4f2c8bfa39fc
4
- data.tar.gz: 2d8913b0a9ab19edfc13033de62c5260606bb4d2b5db61612822efaaac11e049
3
+ metadata.gz: 52d5181952c73c459f53e34a1b7b9e09446843d03940acdd74163bc7518755d8
4
+ data.tar.gz: d69ca269167e0a446f915b40e951e99b78711b39e5de6e82d3963bdcf5af7eb8
5
5
  SHA512:
6
- metadata.gz: 3ce0ffd9156b146c180e948c795c597a203c5132e07e6ee224adf19fe19033f472a2f1f808c02a9ec30278d6bac354b791b14c1ee68ff0fcbc99c18806843be3
7
- data.tar.gz: 7c099849c04b62733c695108f4bf630e85198c00286b616e32a56f657843bc513aa5f2aa1c287628cdf8956fd9c615359a61c127f14c0cc6be39cc7dfd3bb9cd
6
+ metadata.gz: 57128af515eb9af2e84d5a1fe67581abaab5d2a6d673215017e936508f30c27e3b0e3d70989c40d3298eabbedaf8d805da7855d104f04e5fa5b029e0de20328d
7
+ data.tar.gz: 3e1ddb0dd5ed2e03ca71548a41567dc232945d9fcb3fa6183e8a269d9f139a4932caae4529d8f26eb724a9755c09a1d3fb5db2482da8fafeb42085e30b20740f
data/exe/bashman CHANGED
@@ -75,7 +75,7 @@ if options[:save] then
75
75
  end
76
76
 
77
77
  if options[:yes]
78
- profile.save(options[:savedir], options[:overwrite], options[:verbose])
78
+ profile.save(options[:savedir], options[:profile], options[:overwrite], options[:verbose])
79
79
  end
80
80
  end
81
81
 
@@ -1,3 +1,3 @@
1
1
  module Bashman
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/bashman.rb CHANGED
@@ -110,7 +110,7 @@ class Profile < JSONable
110
110
  end
111
111
  end
112
112
 
113
- def save(dir = '~/.bashman/profiles', overwrite = false, verbose = false)
113
+ def save(dir = '~/.bashman/profiles', profile_name = 'default', overwrite = false, verbose = false)
114
114
  dir = File.expand_path(dir)
115
115
  FileUtils.mkdir_p(dir) if not Dir.exists?(dir)
116
116
 
@@ -119,7 +119,7 @@ class Profile < JSONable
119
119
  @timestamp = Time.now.to_i
120
120
 
121
121
  # get timestamp from manifest in the event we need to back up files
122
- manifest = "#{dir}/#{name}.json"
122
+ manifest = "#{dir}/#{profile_name}.json"
123
123
  puts "Saving manifest file #{manifest}" if verbose
124
124
  timestamp = nil
125
125
  if not overwrite
@@ -136,7 +136,7 @@ class Profile < JSONable
136
136
  # now save shell files and write manifest
137
137
  if instance_variable_defined?("@shell")
138
138
  shell = @shell.to_hash
139
- @shell.save_dotfiles("#{dir}/#{name}.tar.gz", timestamp, overwrite)
139
+ @shell.save_dotfiles("#{dir}/#{profile_name}.tar.gz", timestamp, overwrite)
140
140
  @shell = shell
141
141
  end
142
142
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bashman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Bayer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-08 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler