motion-devices 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,7 +14,7 @@ For each device, the config file must contain the device's name and ID, like so:
14
14
 
15
15
  The gem will define tasks for each defined device in all the configuration files that it finds.
16
16
 
17
- ## Usage
17
+ ## Installation
18
18
 
19
19
  Install the gem with
20
20
 
@@ -28,6 +28,14 @@ or add it to your Gemfile, if you're using bundler (which you should):
28
28
 
29
29
  gem 'motion-devices'
30
30
 
31
+ ## Usage
32
+
33
+ Once configured, you can leave all your devices plugged in to your computer and easily select the deployment target like this:
34
+
35
+ rake device:iphone5
36
+ rake device:iphone4
37
+ rake device:ipad
38
+
31
39
  # Forking
32
40
 
33
41
  Feel free to fork and submit pull requests!
@@ -3,12 +3,19 @@ file_paths = ['config/devices.yml', "#{ENV['HOME']}/.devices.yml", '/etc/devices
3
3
  file_paths.each do |path|
4
4
  if File.exists?(path)
5
5
  namespace :device do
6
+ tasks = []
7
+
6
8
  YAML.load(File.read(path)).each do |name, id|
9
+ tasks << name
10
+
7
11
  desc "Deploy on #{name}"
8
12
  task name do
9
13
  sh "rake device id=#{id}"
10
14
  end
11
15
  end
16
+
17
+ desc "Deploy on all devices"
18
+ task :all => tasks
12
19
  end
13
20
  end
14
21
  end
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "motion-devices"
4
- s.version = '0.0.1'
4
+ s.version = '0.0.2'
5
5
  s.authors = ["Thomas Kadauke"]
6
6
  s.email = ["thomas.kadauke@googlemail.com"]
7
7
  s.homepage = "https://github.com/tkadauke/motion-devices"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-devices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -55,7 +55,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
55
  version: '0'
56
56
  segments:
57
57
  - 0
58
- hash: -2183548939497714971
58
+ hash: -3535735714179142326
59
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  none: false
61
61
  requirements:
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  version: '0'
65
65
  segments:
66
66
  - 0
67
- hash: -2183548939497714971
67
+ hash: -3535735714179142326
68
68
  requirements: []
69
69
  rubyforge_project:
70
70
  rubygems_version: 1.8.25