Paul Thornthwaite
b218ac6cd1
[cli] Changes fog --version
short option to -v
...
Looking at a number of similar Ruby based tools, Bundler, Rubygems, Pry
and IRB all use lowercase v for the short option for `--version`
Ruby itself uses `-v` for verbose but without any further arguments
prints the version and exits.
2013-07-01 21:57:52 +01:00
Postmodern
86a0578aab
Renamed -f,--fogrc to -C,--credentials-path.
2013-06-26 19:32:35 -07:00
Postmodern
56a6585282
Added the -f, --fogrc option for specifying an alternate fogrc file.
2013-06-25 17:59:54 -07:00
Postmodern
b00f8e65e7
Added option parsing to bin/fog.
...
* Added -V, --version
* Added -h, --help
2013-06-25 17:11:28 -07:00
Eric Hodel
3ef31ce551
Added SIGINT handler to the fog console
...
Previously ^C would exit the fog console.
Now ^C is handled and ^D, exit or quit must by typed to exit the
console. This fixes a major personal annoyance of mine as the fog
console did not behave like IRB or like the shell when you wanted to use
^C to clear what you had just typed.
2012-12-06 15:41:34 -08:00
Kevin Menard
dcefc2d7de
Fixed #875 : Loosen multi_json version.
2012-04-25 10:31:28 -04:00
Steve Smith
d89dd56fe7
Use MultiJSON #dump and #load rather than #encode and #decode
...
MultiJSON deprecated these methods in 1.3.0 in favour of the new ones.
This requires an update to the gemspec to ensure ~>1.3
2012-04-20 13:09:14 +01:00
Mark A. Miller
f3e2c939f4
* Changed LoadError to Fog::Error::LoadError when missing configuration
...
* When running from command line, rescue the exception, and print the help message
When running fog for the first time with no setup, the missing_exception message
was surrounded above and below with a stack trace, which is not particularly
user-friendly. Since we've rescuing the LoadError only in bin/fog, we know
we don't have to worry about higher level libraries not getting the exception,
since it wouldn't propagate between processes.
Changing LoadError to Fog::Error::LoadError lets us know that this was
an issue on fog's part, rather than some other library we might be
using. Since we inherit from the LoadError class, any higher-level
libraries that were using a rescue based on LoadError will still work.
2011-08-14 08:09:35 -05:00
geemus
7cbf1861aa
[misc] to_json calls to use MultiJson
2011-07-20 11:08:11 -05:00
geemus
69407efdbb
[compute] refactor provider/service namespacing
2011-06-16 16:29:14 -07:00
geemus
0ba26b681e
[cdn] refactor provider/service namespacing
2011-06-15 17:32:15 -07:00
geemus
a50f469778
[dns] refactor provider/service namespacing
2011-06-15 17:25:01 -07:00
geemus
e1512c9ac8
[storage] refactor provider/service namespacing
2011-06-15 14:27:11 -07:00
geemus
4297292455
[core] create Fog.available_providers for bin rather than overriding Fog.providers
2011-05-24 17:31:05 -07:00
geemus
3022df2b23
Fixes error messaging when credentials missing
...
closes #287
2011-05-04 13:12:52 -07:00
geemus
e72831d99b
[ecloud|compute] re-namespace terremark ecloud
2011-02-17 10:44:46 -08:00
geemus
0d3c1b3e15
fixes related to providers listings
2011-02-11 14:36:48 -08:00
geemus
a1402c5faa
[core] cleanup providers/services setup
2011-02-08 10:00:57 -08:00
geemus
a5b70181d9
[bin] consolidate
2011-01-07 15:51:16 -08:00
geemus
4d739e6054
[core] simplify credential management
...
add ability to use Fog.credentials_path to use non '~/.fog'
try to use available credentials automagically even outside bin
2010-12-15 15:32:33 -08:00
geemus
c04f777b93
small fixes to facilitate command line usage
2010-10-19 13:00:27 -07:00
geemus
c53b5e273c
fixing more warnings
2010-10-13 13:20:18 -07:00
geemus
59e1d89882
check FOG_MOCK in env for bin/fog
2010-10-04 14:03:22 -07:00
geemus
dfd30e521f
cleanup lib/fog by segregating shared into 'core'
2010-09-29 13:22:30 -07:00
geemus
07dbdf6952
providers abstraction, more consolidated bin stuff between providers
2010-09-21 11:11:15 -07:00
geemus
c25862f63e
small cleanup in bin messaging
2010-09-17 11:47:06 -07:00
geemus
dce5893555
add services accessors and clarify vocab by not reusing service
2010-09-03 15:32:30 -07:00
geemus
fd755e042b
clean up by changing service abstraction into a class
2010-09-03 15:04:54 -07:00
geemus
c96614a11d
consolidate credential management when running from bin
2010-09-02 13:39:01 -07:00
geemus
abdc151081
[new_servers] first pass at basic functionality
2010-06-23 13:22:20 -07:00
ggoodale
2a9224cfa7
[bbg] flesh out bbg support
...
Added basic spec framework; changed class names to match the template fog seems to prefer
Servers tests pass; create and delete implemented.
Added an example script
Properly handle a 409 response from the API
Fixed BBG code to work with the new api endpoint changes; tweaks to the (currently nonexistent) reboot api call
Implement the reboot command for blocks
2010-06-03 14:48:53 -07:00
geemus
090f66d3d2
small technicality cleanups
2010-05-15 21:05:16 -07:00
Edward Muller
d48db03314
Refactor Terremark into Vcloud
...
Purpose is to better abstract individual services
2010-05-10 20:37:03 -07:00
geemus
c07a5d343d
require fog in bin, which sets up load path for subsequent requires
2010-05-03 15:10:36 -07:00
geemus
7ac536e873
[local] rough first cut of local storage
2010-05-01 22:10:11 -07:00
Alex Malinovich
494c1d5686
Using bundler for fun and profit!
2010-05-02 11:52:05 +08:00
geemus (Wesley Beary)
99e8b9a32a
break out credential files for easier access
2010-04-02 10:14:37 -07:00
geemus (Wesley Beary)
7c65e8924f
fix the json output
2010-03-28 17:53:53 -07:00
geemus (Wesley Beary)
1761fc53f8
allow passing a request into bin/fog to return json
2010-03-27 18:06:32 -07:00
geemus (Wesley Beary)
3a394f61e3
more cleanup around interactive formatting
2010-02-15 20:18:52 -08:00
geemus (Wesley Beary)
72551a87d7
more cleanup around bin/fog usage and messaging
2010-02-15 17:15:56 -08:00
geemus (Wesley Beary)
a264f29edf
nicer format for inspecting models in bin/fog
2010-02-14 14:34:33 -08:00
geemus (Wesley Beary)
6d671821b2
split out bin related helpers into their respective directories
2010-02-11 21:41:37 -08:00
geemus (Wesley Beary)
082276e051
first pass at read only terremark (vCloud Express) support
2010-02-11 21:34:44 -08:00
geemus (Wesley Beary)
ca532db0be
add slicehost to bin
2010-02-06 15:43:02 -08:00
geemus (Wesley Beary)
7cafd6d2c1
add cross-service methods to bin
2010-02-06 15:42:38 -08:00
Wesley Beary
16d68f96cd
fix non-default credentials
2010-01-25 16:21:38 -08:00
Wesley Beary
ea5f87aa3f
nicer credential management for bin/fog
2010-01-23 12:08:37 -08:00
Wesley Beary
47c53e06b0
simplify credential management stuff for bin/fog
2010-01-21 19:47:40 -08:00
Wesley Beary
92924c7e26
fix credentials hinting for bin file
2010-01-14 21:27:08 -08:00