-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37a2081
commit fb6c6e0
Showing
24 changed files
with
497 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,13 +46,19 @@ Or install it yourself as: | |
### CLI | ||
#### Commands | ||
``` | ||
fabricio app # Obtain single app | ||
fabricio apps # Obtain all app | ||
fabricio build # Obtain single build | ||
fabricio builds # Obtain all builds | ||
fabricio credential # Setup credential | ||
fabricio help [COMMAND] # Describe available commands or one specific command | ||
fabricio organization # Obtain organization | ||
fabricio app get # Obtain single app | ||
fabricio app all # Obtain all app | ||
fabricio app active_now # Obtain active now count | ||
fabricio app single_issue # Obtain single issue | ||
fabricio app issue_session # Obtain single issue session | ||
fabricio app latest_session # Obtain latest issue session | ||
fabricio build get # Obtain single build | ||
fabricio build all # Obtain all builds | ||
fabricio version all # Obtain all versions | ||
fabricio version top # Obtain top versions | ||
fabricio organization get # Obtain organization | ||
fabricio credential # Setup credential | ||
fabricio help [COMMAND] # Describe available commands or one specific command | ||
``` | ||
#### Example | ||
```bash | ||
|
@@ -63,9 +69,9 @@ email: [email protected] | |
Now we want your password. Do not be afraid, it is stored locally | ||
password: | ||
Successful login to TestOrganization | ||
> fabricio organization | ||
> fabricio organization get | ||
{"id"=>"424423ac76fa54934e00a09b", "alias"=>"test", "name"=>"Test", "api_key"=>"19ac3e6195b1900ada120c1e0c1230a818626d55", "enrollments"=>{"answers_enhanced_feature_set_enabled_for_new_apps"=>"false", "answers_ip_address_tracking_enabled_for_new_apps"=>"true", "beta_distribution"=>"true"}, "accounts_count"=>100, "mopub_id"=>"11142", "sdk_organization"=>true, "apps_counts"=>{"ios"=>9}, "build_secret"=>"fdda1e597843e25731848bb46eec2cc893ea86847e22d5f44567ecd48ff4e32"} | ||
> fabricio apps | ||
> fabricio app all | ||
... | ||
``` | ||
|
||
|
@@ -172,7 +178,13 @@ Obtains the list of all application builds. | |
|
||
Obtains a specific build for a specific application. | ||
|
||
#### `client.build.top_versions('app_id', 'start_timestamp', 'end_timestamp')` | ||
### Version | ||
|
||
#### `client.version.all('app_id', 'start_timestamp', 'end_timestamp')` | ||
|
||
Obtains an array of all versions for a given application. | ||
|
||
#### `client.version.top('app_id', 'start_timestamp', 'end_timestamp')` | ||
|
||
Obtains an array of top versions for a given application. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
require 'thor' | ||
require 'fabricio' | ||
require 'fileutils' | ||
require 'yaml' | ||
require_relative 'cli_helper' | ||
|
||
module Fabricio | ||
class Version < Thor | ||
|
||
desc "all", "Obtain all versions" | ||
option :app_id => :required, :type => :string | ||
option :short, :type => :boolean | ||
def all(app_id) | ||
if options[:short] | ||
say("#{client.version.all(app_id)}") | ||
else | ||
say("#{client.version.all(app_id).to_s}") | ||
end | ||
end | ||
|
||
desc "top", "Obtain single build" | ||
option :app_id => :required, :type => :string | ||
option :start_time, :type => :string | ||
option :end_time, :type => :string | ||
option :short, :type => :boolean | ||
def top(app_id) | ||
result = nil | ||
if options[:start_time] && options[:end_time] | ||
result = client.version.top(app_id, options[:start_time], options[:end_time]) | ||
else | ||
result = client.version.top(app_id) | ||
end | ||
if options[:short] | ||
say("#{client.version.top(app_id).pretty_print}") | ||
else | ||
say("#{client.version.top(app_id).to_s}") | ||
end | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
lib/fabricio/networking/organization_request_model_factory.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.