presbeus 0.0.10 → 0.0.11
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 +4 -4
- data/lib/presbeus.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0366007c1c14b4632e911edc15a49f63515686054e3e80047fab2c9e4691cf0b
|
4
|
+
data.tar.gz: 14c258d2a07d7a3156f0bf0c623419af07b9c3838641912cc4f5d13df7ff38c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 474808bc34ab5f02e4d3270d9bba986ffecaccb0a5e6a036de324d4f64f0ff66e62cf049cdcca0001852b44cf11bbbc4ed5b292375954eed046737509be564c6
|
7
|
+
data.tar.gz: e30b6b05ab02a235c628b13c8a19d0ef888632c3f89d98ff304c6cccb7adc8d5492d72a051e72d1ffdbbb9953909763605fa2c1a0e5fff1fc98b719e8cc66dcf
|
data/lib/presbeus.rb
CHANGED
@@ -18,6 +18,8 @@ end
|
|
18
18
|
|
19
19
|
class Presbeus
|
20
20
|
|
21
|
+
attr_accessor :default_device
|
22
|
+
|
21
23
|
def initialize_arguments
|
22
24
|
argument(:help, [], "show this help") { help }
|
23
25
|
argument(:realtime, [], "handle realtime event stream") { realtime }
|
@@ -47,6 +49,7 @@ class Presbeus
|
|
47
49
|
configuration = YAML.load_file configuration_path
|
48
50
|
api_server = 'https://api.pushbullet.com'
|
49
51
|
api_server = configuration["api_server"] if configuration.include? "api_server"
|
52
|
+
@default_device = configuration["default_device"] if configuration.include? "default_device"
|
50
53
|
@token = `#{configuration['password_command']}`.chomp
|
51
54
|
@notify_command = configuration['notify_command']
|
52
55
|
@headers = {"Access-Token" => @token, "Content-Type" => "json"}
|