Class: Nokaya::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/nokaya/app.rb

Instance Method Summary collapse

Instance Method Details

#adn(*args) ⇒ Object



83
84
85
86
87
88
# File 'lib/nokaya/app.rb', line 83

def adn *args
  puts Status.wait if options['verbose']
  image = ADN.new(args, options)
  image.save
  puts Status.saved(image) if options['verbose']
end

#appstore(*args) ⇒ Object



39
40
41
42
43
44
# File 'lib/nokaya/app.rb', line 39

def appstore *args
  puts Status.wait if options['verbose']
  image = AppStore.new(args, options)
  image.save
  puts Status.saved_album(image) if options['verbose']
end

#deviantart(*args) ⇒ Object



144
145
146
147
148
149
# File 'lib/nokaya/app.rb', line 144

def deviantart *args
  puts Status.wait if options['verbose']
  image = Deviantart.new(args, options)
  image.save
  puts Status.saved_album(image) if options['verbose']
end

#favd(*args) ⇒ Object



72
73
74
75
76
77
# File 'lib/nokaya/app.rb', line 72

def favd *args
  puts Status.wait if options['verbose']
  image = Favd.new(args, options)
  image.save
  puts Status.saved(image) if options['verbose']
end

#flickr_album(*args) ⇒ Object



124
125
126
127
128
129
# File 'lib/nokaya/app.rb', line 124

def flickr_album *args
  puts Status.wait if options['verbose']
  image = FlickrAlbum.new(args, options)
  image.save
  puts Status.saved_album(image) if options['verbose']
end

#imageshack_user(*args) ⇒ Object



154
155
156
157
158
159
# File 'lib/nokaya/app.rb', line 154

def imageshack_user *args
  puts Status.wait if options['verbose']
  image = ImageshackUser.new(args, options)
  image.save
  puts Status.saved_album(image) if options['verbose']
end

#imgur_album(*args) ⇒ Object



114
115
116
117
118
119
# File 'lib/nokaya/app.rb', line 114

def imgur_album *args
  puts Status.wait if options['verbose']
  image = ImgurAlbum.new(args, options)
  image.save
  puts Status.saved_album(image) if options['verbose']
end

#instagram(*args) ⇒ Object



61
62
63
64
65
66
# File 'lib/nokaya/app.rb', line 61

def instagram *args
  puts Status.wait if options['verbose']
  image = Instagram.new(args, options)
  image.save
  puts Status.saved(image) if options['verbose']
end

#movie(*args) ⇒ Object



17
18
19
20
21
22
# File 'lib/nokaya/app.rb', line 17

def movie *args
  puts Status.wait_api if options['verbose']
  image = Movie.new(args, options)
  image.save
  puts Status.saved(image) if options['verbose']
end

#music(*args) ⇒ Object



50
51
52
53
54
55
# File 'lib/nokaya/app.rb', line 50

def music *args
  puts Status.wait if options['verbose']
  image = MusicStore.new(args, options)
  image.save
  puts Status.saved_album(image) if options['verbose']
end

#photonet(*args) ⇒ Object



134
135
136
137
138
139
# File 'lib/nokaya/app.rb', line 134

def photonet *args
  puts Status.wait if options['verbose']
  image = Photonet.new(args, options)
  image.save
  puts Status.saved_album(image) if options['verbose']
end

#tumblr(*args) ⇒ Object



94
95
96
97
98
99
# File 'lib/nokaya/app.rb', line 94

def tumblr *args
  puts Status.wait if options['verbose']
  image = Tumblr.new(args, options)
  image.save
  puts Status.saved(image) if options['verbose']
end

#tumblr_album(*args) ⇒ Object



104
105
106
107
108
109
# File 'lib/nokaya/app.rb', line 104

def tumblr_album *args
  puts Status.wait if options['verbose']
  image = TumblrAlbum.new(args, options)
  image.save
  puts Status.saved_album(image) if options['verbose']
end

#tvshow(*args) ⇒ Object



28
29
30
31
32
33
# File 'lib/nokaya/app.rb', line 28

def tvshow *args
  puts Status.wait_api if options['verbose']
  image = TVShow.new(args, options)
  image.save
  puts Status.saved(image) if options['verbose']
end

#versionObject



163
164
165
166
167
168
# File 'lib/nokaya/app.rb', line 163

def version
  puts "\nNOKAYA\n\n"
  puts "Version:\t#{VERSION}\n\n"
  puts "Changelog:\thttps://github.com/ericdke/nokaya/blob/master/CHANGELOG.md\n"
  puts "Help:\t\thttps://github.com/ericdke/nokaya/blob/master/README.md\n\n"
end