Class: DialogController

Inherits:
ApplicationController show all
Defined in:
app/controllers/dialog_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#dispatch, #get_locales, #is_dcmgr?, #set_application, #set_locale

Instance Method Details

#attach_volumeObject



11
12
13
# File 'app/controllers/dialog_controller.rb', line 11

def attach_volume
  @volume_ids = params[:ids]
end

#create_security_groupObject



47
48
49
50
51
# File 'app/controllers/dialog_controller.rb', line 47

def create_security_group
  @description = ''
  @rule = ''
  render :create_and_edit_security_group
end

#create_snapshotObject



23
24
25
# File 'app/controllers/dialog_controller.rb', line 23

def create_snapshot
  @volume_ids = params[:ids]
end

#create_ssh_keypairObject



71
72
# File 'app/controllers/dialog_controller.rb', line 71

def create_ssh_keypair
end

#create_volumeObject



4
5
# File 'app/controllers/dialog_controller.rb', line 4

def create_volume
end

#create_volume_from_snapshotObject



7
8
9
# File 'app/controllers/dialog_controller.rb', line 7

def create_volume_from_snapshot
  @snapshot_ids = params[:ids]
end

#delete_security_groupObject



53
54
55
56
# File 'app/controllers/dialog_controller.rb', line 53

def delete_security_group
  @uuid = params[:ids][0]
  @security_group = DcmgrResource::SecurityGroup.show(@uuid)
end

#delete_snapshotObject



27
28
29
# File 'app/controllers/dialog_controller.rb', line 27

def delete_snapshot
  @snapshot_ids = params[:ids]
end

#delete_ssh_keypairObject



74
75
76
# File 'app/controllers/dialog_controller.rb', line 74

def delete_ssh_keypair
  @ssh_keypair_id = params[:ids][0]
end

#delete_volumeObject



19
20
21
# File 'app/controllers/dialog_controller.rb', line 19

def delete_volume
  @volume_ids = params[:ids]
end

#detach_volumeObject



15
16
17
# File 'app/controllers/dialog_controller.rb', line 15

def detach_volume
  @volume_ids = params[:ids]
end

#edit_security_groupObject



58
59
60
61
62
63
64
65
# File 'app/controllers/dialog_controller.rb', line 58

def edit_security_group
  @uuid = params[:ids][0]
  @security_group = DcmgrResource::SecurityGroup.show(@uuid)
  
  @description =  @security_group["description"]
  @rule = @security_group["rule"]
  render :create_and_edit_security_group
end

#launch_instanceObject



67
68
69
# File 'app/controllers/dialog_controller.rb', line 67

def launch_instance
  @image_id = params[:ids][0]
end

#reboot_instancesObject



39
40
41
# File 'app/controllers/dialog_controller.rb', line 39

def reboot_instances
  @instance_ids = params[:ids]
end

#start_instancesObject



31
32
33
# File 'app/controllers/dialog_controller.rb', line 31

def start_instances
  @instance_ids = params[:ids]
end

#stop_instancesObject



35
36
37
# File 'app/controllers/dialog_controller.rb', line 35

def stop_instances
  @instance_ids = params[:ids]
end

#terminate_instancesObject



43
44
45
# File 'app/controllers/dialog_controller.rb', line 43

def terminate_instances
  @instance_ids = params[:ids]
end