mdwan-divvy 0.1.1 → 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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{divvy}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Michael Dwan"]
@@ -10,6 +10,12 @@ module Divvy
10
10
  run("chmod #{mode} #{dir}") unless mode.nil?
11
11
  end
12
12
 
13
+ def push_text(path, text)
14
+ run("[ -f #{path} ] || touch #{path}")
15
+ run("echo '#{text}' | tee -a #{path}")
16
+ # "echo '#{text}' |#{'sudo' if option?(:sudo)} tee -a #{path}"
17
+ end
18
+
13
19
  end
14
20
  end
15
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdwan-divvy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Dwan