[command] Move all command classes into the Command namespace.

This commit is contained in:
Eloy Durán
2014-01-17 17:48:58 +01:00
parent 1a8cfef0d5
commit 274555a2df
8 changed files with 16 additions and 18 deletions

View File

@@ -21,7 +21,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
module Motion; module Project
module Motion; module Project; class Command
class Account < Command
self.summary = 'Access account details.'
self.description = 'Access the details of your software license account.'
@@ -33,4 +33,4 @@ module Motion; module Project
system("open \"https://secure.rubymotion.com/account?license_key=#{license_key}&email=#{email}\"")
end
end
end; end
end; end; end

View File

@@ -21,7 +21,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
module Motion; module Project
module Motion; module Project; class Command
class Activate < Command
self.summary = 'Activate software license.'
self.description = 'Activate your RubyMotion software license key.'
@@ -52,4 +52,4 @@ module Motion; module Project
puts "Product activated. Thanks for purchasing RubyMotion :-)"
end
end
end; end
end; end; end

View File

@@ -21,7 +21,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
module Motion; module Project
module Motion; module Project; class Command
class Changelog < Command
self.summary = 'View the changelog.'
self.description = 'View the changes that have been made in all ' \
@@ -31,5 +31,4 @@ module Motion; module Project
system("#{pager} /Library/RubyMotion/NEWS")
end
end
end; end
end; end; end

View File

@@ -24,7 +24,7 @@
require 'motion/project/app'
require 'motion/project/template'
module Motion; module Project
module Motion; module Project; class Command
class Create < Command
DefaultTemplate = 'ios'
@@ -69,4 +69,4 @@ module Motion; module Project
Motion::Project::App.create(@app_name, @template)
end
end
end; end
end; end; end

View File

@@ -21,7 +21,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
module Motion; module Project
module Motion; module Project; class Command
class DeprecatedDeviceConsole < Command
self.command = 'device:console'
@@ -47,5 +47,4 @@ module Motion; module Project
end
end
end
end; end
end; end; end

View File

@@ -21,7 +21,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
module Motion; module Project
module Motion; module Project; class Command
class RI < Command
self.summary = 'Display API reference.'
self.description = 'Display Cocoa(Touch) API reference documentation ' \
@@ -46,4 +46,4 @@ module Motion; module Project
system(line)
end
end
end; end
end; end; end

View File

@@ -23,7 +23,7 @@
require 'uri'
module Motion; module Project
module Motion; module Project; class Command
class Support < Command
self.summary = 'Create a support ticket.'
# TODO make more elaborate
@@ -52,4 +52,4 @@ module Motion; module Project
system("open \"https://secure.rubymotion.com/new_support_ticket?license_key=#{license_key}&email=#{email}&environment=#{environment}\"")
end
end
end; end
end; end; end

View File

@@ -23,7 +23,7 @@
require 'motion/project/builder'
module Motion; module Project
module Motion; module Project; class Command
class Update < Command
self.summary = 'Update the software.'
# TODO make more elaborate
@@ -156,4 +156,4 @@ module Motion; module Project
end
end
end
end; end
end; end; end